5 use aliased 'SGN::Test::WWW::Mechanize';
6 use SGN::Test::Data qw/ CXGN::Biosource::Schema create_test /;
8 my $mech = Mechanize->new;
10 $mech->with_test_level( local => sub {
12 my $file = create_test('MdFiles', {
14 basename => 'ath_prots.seq',
17 ok( -f $file->path, 'made a test MdFiles object' );
19 $mech->get_ok( '/metadata/file/'.$file->file_id.'/download' );
20 is( $mech->content_type, 'text/plain', 'got right content type' );