2 use Test
::More tests
=> 6;
8 use SGN
::Test
::WWW
::Mechanize
;
9 use CXGN
::Phenome
::GenericGenePage
;
11 $SIG{__DIE__
} = \
&Carp
::confess
;
14 my $mech = SGN
::Test
::WWW
::Mechanize
->new;
16 my $dbh = $mech->context->dbc->dbh();
18 my $ggp = CXGN
::Phenome
::GenericGenePage
23 test_xml
( $ggp->render_xml );
25 # now test it on the site
26 my $url = '/phenome/generic_gene_page.pl';
27 $mech->get( "$url?locus_id=428" );
28 test_xml
( $mech->content );
32 like
( $content, qr/dwarf/, 'result looks OK');
33 like
( $content, qr/<gene/, 'result looks OK');
34 like
( $content, qr/<data_provider>/, 'result looks OK');