示例#1
0
    def setUp(self):
        super(GetRelatedTestCase, self).setUp()
        create_basic_categories(self)
        create_and_place_a_publishable(self)
        create_and_place_more_publishables(self)

        Publishable.objects.all().update(category=self.publishable.category)

        list_all_placements_in_category_by_hour(self, category=self.publishable.category)
示例#2
0
文件: test_related.py 项目: whit/ella
    def setUp(self):
        super(GetRelatedTestCase, self).setUp()
        create_basic_categories(self)
        create_and_place_a_publishable(self)
        create_and_place_more_publishables(self)

        Publishable.objects.all().update(category=self.publishable.category)

        list_all_placements_in_category_by_hour(
            self, category=self.publishable.category)
示例#3
0
文件: test_feeds.py 项目: whit/ella
class TestFeeds(DatabaseTestCase):
    def setUp(self):
        try:
            import feedparser
        except ImportError, e:
            raise self.SkipTest()

        super(TestFeeds, self).setUp()
        create_basic_categories(self)
        create_and_place_a_publishable(self)
        create_and_place_more_publishables(self)
        list_all_placements_in_category_by_hour(self)

        self._feeder = RSSTopCategoryListings('test', HttpRequest())
示例#4
0
 def setUp(self):
     super(TestListingTag, self).setUp()
     create_basic_categories(self)
     create_and_place_a_publishable(self)
     create_and_place_more_publishables(self)
     list_all_placements_in_category_by_hour(self)
示例#5
0
 def setUp(self):
     super(TestListContentType, self).setUp()
     create_and_place_more_publishables(self)
     list_all_placements_in_category_by_hour(self, category=self.category)
     self.list_content_type = ListContentType()
示例#6
0
文件: test_views.py 项目: Almad/ella
 def setUp(self):
     super(TestListContentType, self).setUp()
     create_and_place_more_publishables(self)
     list_all_placements_in_category_by_hour(self, category=self.category)
示例#7
0
文件: test_listing.py 项目: whit/ella
 def setUp(self):
     super(TestListing, self).setUp()
     create_basic_categories(self)
     create_and_place_a_publishable(self)
     create_and_place_more_publishables(self)
     list_all_placements_in_category_by_hour(self)