t/p3_get_person_by_wrong_name.t
raw| 1 | use Test::More tests => 4; |
| 2 | |
| 3 | use IMDB::Persons; |
| 4 | |
| 5 | my %pars = (crit => 'hhhhhhhhhhhhh', cache => 0, debug => 0); |
| 6 | |
| 7 | my $person = new IMDB::Persons(%pars); |
| 8 | |
| 9 | is($person->error, 'Not Found', 'error'); |
| 10 | is($person->status, 0, 'status'); |
| 11 | is($person->code, undef, 'code'); |
| 12 | is($person->name, '', 'name'); |