

def test_no_enclosure_when_format_not_set(self):
    feeder = RSSTopCategoryListings()
    feeder.format = None
    self._set_photo()
    tools.assert_true((self.publishables[0].photo is not None))
    tools.assert_equals(None, feeder.item_enclosure_url(self.listings[0]))

dataset/ETHPy150Open ella/ella/test_ella/test_core/test_feeds.py TestFeeds.test_no_enclosure_when_format_not_set/original