예제 #1
0
    def tearDown(self):
        super(BanditCoreTestCase, self).tearDown()

        # Clean up just in case there's keys still lying around
        redis = oz.redis.create_connection()

        for key in redis.keys("bandit:*:v2"):
            redis.delete(key)
예제 #2
0
파일: test_core.py 프로젝트: jstacoder/oz
    def tearDown(self):
        super(BanditCoreTestCase, self).tearDown()
        
        # Clean up just in case there's keys still lying around
        redis = oz.redis.create_connection()

        for key in redis.keys("bandit:*:v2"):
            redis.delete(key)
예제 #3
0
    def tearDown(self):
        super(CDNMiddlewareTestCase, self).tearDown()

        # Kill the created key
        redis = oz.redis.create_connection()
        redis.delete("cache-buster:v1")

        # Kill any test files
        for f in os.listdir("static"):
            if f.startswith("test-aws-cdn-"):
                os.remove(os.path.join("static", f))
예제 #4
0
    def tearDown(self):
        super(CDNMiddlewareTestCase, self).tearDown()

        # Kill the created key
        redis = oz.redis.create_connection()
        redis.delete("cache-buster:v2")

        # Kill any test files
        for f in os.listdir("static"):
            if f.startswith("test-aws-cdn-"):
                os.remove(os.path.join("static", f))