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)
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))
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))