Exemplo n.º 1
0
 def test_box_rss_description_can_override_rss_description(self):
     template_loader.templates['box/rss_description.html'] = 'XXX'
     feeder = RSSTopCategoryListings()
     feeder.box_context = Context({})
     tools.assert_equals('XXX', feeder.item_description(self.listings[0]))
Exemplo n.º 2
0
 def test_box_rss_description_can_override_rss_description(self):
     template_loader.templates['box/rss_description.html'] = 'XXX'
     feeder = RSSTopCategoryListings()
     feeder.box_context = Context({})
     tools.assert_equals('XXX', feeder.item_description(self.listings[0]))
Exemplo n.º 3
0
 def test_item_description_defaults_to_publishable_description(self):
     feeder = RSSTopCategoryListings()
     feeder.box_context = {}
     tools.assert_equals(self.publishables[0].description, feeder.item_description(self.listings[0]))
Exemplo n.º 4
0
 def test_item_description_defaults_to_publishable_description(self):
     feeder = RSSTopCategoryListings()
     feeder.box_context = {}
     tools.assert_equals(self.publishables[-1].description,
                         feeder.item_description(self.listings[0]))