1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
|
#!/usr/bin/env perl
#
# $Id: WebService-YouTube-Video.t 11 2007-04-09 04:34:01Z hironori.yoshida $
#
use strict;
use warnings;
use version; our $VERSION = qv('1.0.3');
use blib;
use Test::Base tests => 6;
use WebService::YouTube::Video;
can_ok( 'WebService::YouTube::Video', qw(new) );
my $video = WebService::YouTube::Video->new;
isa_ok( $video, 'WebService::YouTube::Video' );
# derived from youtube.videos.get_details
can_ok(
$video, qw(
author
title
rating_avg
rating_count
tags
description
update_time
view_count
upload_time
length_seconds
recording_date
recording_location
recording_country
comment_list
channel_list
thumbnail_url
)
);
# derived from youtube.videos.list_by_tag
can_ok(
$video, qw(
author
id
title
length_seconds
rating_avg
rating_count
description
view_count
upload_time
comment_count
tags
url
thumbnail_url
)
);
# derived from youtube.videos.list_by_user
can_ok(
$video, qw(
author
id
title
length_seconds
rating_avg
rating_count
description
view_count
upload_time
comment_count
tags
url
thumbnail_url
)
);
# derived from youtube.videos.list_featured
can_ok(
$video, qw(
author
id
title
length_seconds
rating_avg
rating_count
description
view_count
upload_time
comment_count
tags
url
thumbnail_url
)
);
|