1
# testing Bio::DB::HIVAnnotProcessor.pm
2
# $Id: HIVAnnotProcessor.t 231 2008-12-11 14:32:00Z maj $
13
use_ok('Bio::DB::HIV::HIVAnnotProcessor');
16
my $tobj = new Bio::DB::HIV::HIVAnnotProcessor();
19
isa_ok($tobj, 'Bio::DB::HIV::HIVAnnotProcessor');
22
isa_ok($tobj, 'Bio::Root::Root');
23
can_ok($tobj, qw( source_stream next_seq write_seq ));
26
can_ok($tobj, qw( hiv_query ));
29
throws_ok {$tobj->hiv_query(bless({},"narb"))} qr/BadParameter/, "bad type set exception";
32
my $fas = test_output_file();
33
open( FAS, ">", $fas ) or die;
34
print FAS ">goob\natcg\n";
36
ok( $tobj->source_stream(new Bio::SeqIO(-file=>$fas, -format=>'fasta')), "attach stream");
37
throws_ok {$tobj->write_seq(new Bio::Seq(-sequence=>"atcg"))} qr/IOException/, "write exception";
38
ok( $tobj->next_seq, "access stream");