- is($enclosure->url, $url, qq{$format $title enclosure url});
- is($enclosure->type, $media_types{$title}, qq{$format $title enclosure type});
- # is($enclosure->length, '12345', qq{$format $title enclosure length});
- # creation date
- # modification date
+ isnt($entry->issued, undef,
+ qq{$format $title issued date});
+ isnt($entry->modified, undef,
+ qq{$format $title modified date});
+
+ if (defined $media_types{$title}) {
+ is($url, "$baseurl/$title",
+ qq{$format $title id});
+ is($body, undef,
+ qq{$format $title no body text});
+ is($enclosure->url, $url,
+ qq{$format $title enclosure url});
+ is($enclosure->type, $media_types{$title},
+ qq{$format $title enclosure type});
+ cmp_ok($enclosure->length, '>', 0,
+ qq{$format $title enclosure length});
+ }
+ else {
+ is($url, "$baseurl/$title/",
+ qq{$format $title id});
+ isnt($body, undef,
+ qq{$format $title body text});
+ is($enclosure, undef,
+ qq{$format $title no enclosure});
+ }