t/SeqFeature/Generic.t: fix typo on required module for testing
[bioperl-live.git] / t / SeqIO / bsml_sax.t
blobf22d5bf1b439772ccff1decf0798aea163ba8679
1 # -*-Perl-*- Test Harness script for Bioperl
2 # $Id$
4 use strict;
6 BEGIN {
7         use Bio::Root::Test;
8         
9         test_begin(-tests => 15,
10                            -requires_modules => [qw(XML::SAX
11                                                                             XML::SAX::Writer
12                                                                                 XML::SAX::Base)]);
13     
14         use_ok('Bio::SeqIO');
17 my $verbose = test_debug();
19 my $str = Bio::SeqIO->new(-format => 'bsml_sax',
20                           -verbose => $verbose,
21                           -file => test_input_file('U83300.bsml'));
22 my $seq = $str->next_seq;
23 isa_ok($seq, 'Bio::Seq::RichSeqI');
24 my @refs = $seq->annotation->get_Annotations('reference');
25 is(@refs, 2);
26 is($seq->display_id,'MIVN83300');
27 is($seq->molecule ,'dna');
28 ok(! $seq->is_circular);
29 is($seq->get_dates,2);
30 is($seq->accession_number, 'U83300');
31 is($seq->seq_version,1);
32 my @feats = $seq->get_SeqFeatures;
33 is(@feats, 2);
34 is($feats[1]->start, 1);
35 is($feats[1]->end, 946);
36 is($feats[1]->get_tag_values('db_xref'), 3);
37 is($seq->annotation->get_Annotations('reference'),2);
38 is($seq->annotation->get_Annotations('dblink'),2);