1 # -*-Perl-*- Test Harness script for Bioperl
10 test_begin(-tests => 10,
11 -requires_modules => [qw(IO::String LWP::UserAgent)],
12 -requires_networking => 1);
14 use_ok 'Bio::Tools::Analysis::Protein::Mitoprot';
15 use_ok 'Bio::PrimarySeq';
16 use_ok 'Bio::WebAgent';
19 my $verbose = test_debug();
21 ok my $tool = Bio::WebAgent->new(-verbose =>$verbose);
23 my $seq = Bio::PrimarySeq->new(-seq => 'MSADQRWRQDSQDSFGDSFDGDSFFGSDFDGDS'.
24 'DFGSDFGSDGDFGSDFGDSFGDGFSDRSRQDQRS',
25 -display_id => 'test2');
27 ok $tool = Bio::Tools::Analysis::Protein::Mitoprot->new( -seq=>$seq);
30 skip('Server terminated with an error, skipping tests', 4) if $tool->status eq 'TERMINATED_BY_ERROR';
31 ok my $raw = $tool->result('');
32 ok my $parsed = $tool->result('parsed');
33 is ($parsed->{'charge'}, -13);
34 ok my @res = $tool->result('Bio::SeqFeatureI');