Fetching a not-existing static page



examples/www/static_bad.t
#!/usr/bin/perl
use strict;
use warnings;

use Test::More tests => 1;
use LWP::Simple;

my $home = get 'http://localhost:8080/xx';
ok $home, 'There is a response';

Fetch a page and check if there is response.


$ perl static_bad.t
1..1
not ok 1 - There is a response
#     Failed test (static_bad.t at line 10)
# Looks like you failed 1 tests of 1.