Example #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)
Example #2
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)
Example #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))
Example #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))