def tearDown(self): try: timeutils.clear_time_override() self.mox.UnsetStubs() self.stubs.UnsetAll() self.stubs.SmartUnsetAll() self.mox.VerifyAll() super(TestCase, self).tearDown() finally: for path in self._paths: if path in sys.path: sys.path.remove(path) kvs.INMEMDB.clear() CONF.reset()
def tearDown(self): try: timeutils.clear_time_override() self.mox.UnsetStubs() self.stubs.UnsetAll() self.stubs.SmartUnsetAll() self.mox.VerifyAll() super(TestCase, self).tearDown() finally: for path in self._paths: if path in sys.path: sys.path.remove(path) kvs.INMEMDB.clear() CONF.reset()
def tearDown(self): try: timeutils.clear_time_override() self.mox.UnsetStubs() self.stubs.UnsetAll() self.stubs.SmartUnsetAll() self.mox.VerifyAll() super(TestCase, self).tearDown() finally: for path in self._paths: if path in sys.path: sys.path.remove(path) # Clear the registry of providers so that providers from previous # tests aren't used. dependency.reset() kvs.INMEMDB.clear() CONF.reset()
def tearDown(self): try: timeutils.clear_time_override() # NOTE(morganfainberg): The only way to reconfigure the # CacheRegion object on each setUp() call is to remove the # .backend property. del cache.REGION.backend super(TestCase, self).tearDown() finally: for path in self._paths: if path in sys.path: sys.path.remove(path) # Clear the registry of providers so that providers from previous # tests aren't used. dependency.reset() kvs.INMEMDB.clear() CONF.reset()
def tearDown(self): try: timeutils.clear_time_override() self.mox.UnsetStubs() self.stubs.UnsetAll() self.stubs.SmartUnsetAll() self.mox.VerifyAll() super(TestCase, self).tearDown() finally: for path in self._paths: if path in sys.path: sys.path.remove(path) # Clear the registry of providers so that providers from previous # tests aren't used. dependency.reset() kvs.INMEMDB.clear() CONF.reset()
def tearDown(self): try: timeutils.clear_time_override() # NOTE(morganfainberg): The only way to reconfigure the # CacheRegion object on each setUp() call is to remove the # .backend property. del cache.REGION.backend super(TestCase, self).tearDown() finally: for path in self._paths: if path in sys.path: sys.path.remove(path) # Clear the registry of providers so that providers from previous # tests aren't used. dependency.reset() kvs.INMEMDB.clear() CONF.reset()