1 # -*-Perl-*- Test Harness script for Bioperl
10 test_begin(-tests => 13,
11 -requires_modules => [qw(IO::String LWP::UserAgent)],
12 -requires_networking => 1);
15 use_ok("Bio::Tools::Analysis::Protein::GOR4");
18 my $seq = Bio::Seq->new(-seq => 'MSADQRWRQDSQDSFGDSFDGDPPPPPPPPFGDSFGDGFSDRSRQDQRS',
19 -display_id => 'test2');
20 ok my $tool = Bio::Tools::Analysis::Protein::GOR4->new(-seq=>$seq->primary_seq);
24 skip "Skipping tests since we got terminated by a server error", 9 if $tool->status eq 'TERMINATED_BY_ERROR';
25 ok my $raw = $tool->result('');
26 ok my $parsed = $tool->result('parsed');
27 is $parsed->[0]{'coil'}, '999';
28 my @res = sort {$a->start <=> $b->start} $tool->result('Bio::SeqFeatureI');
29 if (scalar @res > 0) {
33 skip 'No results - could not connect to GOR4 server?', 6;
37 ok my $meta = $tool->result('meta');
39 test_skip(-tests => 2, -requires_module => 'Bio::Seq::Meta::Array');
40 is $meta->named_submeta_text('GOR4_coil',1,2), '999 999';
41 is $meta->seq, 'MSADQRWRQDSQDSFGDSFDGDPPPPPPPPFGDSFGDGFSDRSRQDQRS';