1 # -*-Perl-*- Test Harness script for Bioperl
10 test_begin(-tests => 12,
11 -requires_modules => [qw(LWP::UserAgent
13 HTTP::Request::Common)],
14 -requires_networking => 1);
16 use_ok('Bio::DB::GDB');
19 my $verbose = test_debug();
21 my ($gdb, $marker, $info);
27 $gdb = Bio::DB::GDB->new(-verbose=>$verbose);
30 $info = $gdb->get_info(-type=>'marker',
34 if( $@ || ! defined $info) {
35 skip("Warning: Couldn't connect to GDB website! Skipping all other tests",11);
40 is $info->{gdbid}, 'GDB:188296', 'info was ' . $info->{gdbid};
41 is $info->{primers}->[0], 'GCCCAGGAGGTTGAGG', 'info was ' . $info->{primers}->[0];
42 is $info->{primers}->[1], 'AAGGCAGGCTTGAATTACAG', 'info was ' . $info->{primers}->[1];
43 is $info->{'length'}, 226, 'info was '. $info->{'length'};
48 $info = $gdb->get_info(-type=>'marker',
51 if( $@ || ! defined $info) {
52 skip("Warning: Couldn't connect to GDB website! Skipping all other tests",5);
55 is $info->{gdbid}, 'GDB:198271', 'info was ' . $info->{gdbid};
56 is $info->{primers}->[0], 'GGGTGACAGAACAAGACCT', 'info was ' . $info->{primers}->[0];
57 is $info->{primers}->[1], 'ACCCATTAGCCTTGAACTGA', 'info was ' . $info->{primers}->[1];
58 is $info->{'length'}, 155, 'info was '. $info->{'length'};