Merge pull request #254 from bioperl/hyphaltip-bug253-patch-1
[bioperl-live.git] / t / Root / RootIO.t
blob97e3738e3e5d37aede0c4aa42a13803a3c3b2dc9
1 ##############################################
2 # tests http retrieval
3 ##############################################
5 use strict;
6 use warnings;
8 BEGIN {
9     use lib '.';
10     use Bio::Root::Test;
11     test_begin(-tests => 3,
12                -requires_networking => 1);
13     use_ok 'Bio::Root::IO';
16 my $TESTURL = 'http://www.google.com/index.html';
18 my $rio;
20 ok $rio = Bio::Root::IO->new(-url=>$TESTURL), 'default -url method';
21 lives_ok {$rio = Bio::Root::IO->new(-url=>$TESTURL)};