def tearDownClass(self): for c in client.containers(all=True, quiet=True): if c['Id'] not in existing_containers: client.kill(c['Id']) client.remove_container(c['Id']) if not CURRENT_DISABLE_TIMEOUTS: del os.environ['DISABLE_TIMEOUTS']
def setUpClass(self): for c in client.containers(all=True, quiet=True): existing_containers.append(c['Id']) r.flushall()