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

        super(TestListingHandlers, self).setUp()
        create_basic_categories(self)
        create_and_place_a_publishable(self)
        client.flushdb()
Ejemplo n.º 2
0
Archivo: cases.py Proyecto: 3108as/ella
 def tearDown(self):
     super(RedisTestCase, self).tearDown()
     client.flushdb()
Ejemplo n.º 3
0
 def tearDown(self):
     " Flush cache and redis for each unit test. "
     super(CommentViewTestCase, self).tearDown()
     template_loader.templates = {}
     cache.clear()
     client.flushdb()
Ejemplo n.º 4
0
 def setUp(self):
     client.flushdb()
     super(TestTemplateTags, self).setUp()
     create_basic_categories(self)
     create_and_place_a_publishable(self)
Ejemplo n.º 5
0
 def tearDown(self):
     super(RedisTestCase, self).tearDown()
     client.flushdb()