Esempio n. 1
0
 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()
Esempio n. 2
0
 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()
Esempio n. 3
0
    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()
Esempio n. 4
0
    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()
Esempio n. 5
0
    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()
Esempio n. 6
0
    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()