def setUp(self):
        if not client:
            raise SkipTest()

        super(TestListingHandlers, self).setUp()
        create_basic_categories(self)
        create_and_place_a_publishable(self)
        client.flushdb()
예제 #2
0
파일: cases.py 프로젝트: 3108as/ella
 def tearDown(self):
     super(RedisTestCase, self).tearDown()
     client.flushdb()
예제 #3
0
 def tearDown(self):
     " Flush cache and redis for each unit test. "
     super(CommentViewTestCase, self).tearDown()
     template_loader.templates = {}
     cache.clear()
     client.flushdb()
예제 #4
0
 def setUp(self):
     client.flushdb()
     super(TestTemplateTags, self).setUp()
     create_basic_categories(self)
     create_and_place_a_publishable(self)
예제 #5
0
파일: cases.py 프로젝트: snapbakk/ella
 def tearDown(self):
     super(RedisTestCase, self).tearDown()
     client.flushdb()