Debian Codegraph @

t/m6_get_movie_by_title_with_cr_casts.t

raw
1 #
2 # Test retrieving list of cast in case of Credited cast.
3 #
4
5 use strict;
6
7 use Test::More tests => 2;
8 use IMDB::Film;
9
10 my $crit = '0326272';
11 my %pars = (cache => 0, debug => 0, crit => $crit);
12
13 my $obj = new IMDB::Film(%pars);
14 is($obj->title, 'Three Sopranos', 'Movie title');
15 my $cast = $obj->cast;
16 is_deeply($cast->[0], {id => '1202207', name => 'Kathleen Cassello', role => 'Herself'}, 'cast');
17