def test_youtube_atom(self):
        update_feeds()
        youtube_items = list(Item.objects.filter(feed__pk=201))
        self.assertEqual(len(youtube_items), 25)
        for item in youtube_items: 
            self.assertTrue(item.media_url, 'Item "%s" has no media_url' % item.title)
            self.assertTrue(item.media_thumbnail_url, 'Item "%s" has no media_thumbnail_url' % item.title)
            self.assertTrue(item.media_player_url, 'Item "%s" has no media_player_url' % item.title)
            self.assertTrue(item.media_description, 'Item "%s" has no media_description' % item.title)
            self.assertTrue(item.media_description_type)
dataset/ETHPy150Open IanLewis/django-lifestream/lifestream/tests/feed_tests.py/YoutubeTest.test_youtube_atom/original