Ejemplo n.º 1
0
 def tearDown(self):
     # Check that the NullEngine is still the mlab engine 
     if not mlab.get_engine() is self.e:
         raise AssertionError, \
                 "The NullEngine has been overridden"
     engine_manager.current_engine = None
     # Unregistering the engine, to avoid side-effects between tests
     self.e.stop()
     registry.unregister_engine(self.e)
Ejemplo n.º 2
0
 def tearDown(self):
     # Check that the NullEngine is still the mlab engine
     if not mlab.get_engine() is self.e:
         raise AssertionError, \
                 "The NullEngine has been overridden"
     engine_manager.current_engine = None
     # Unregistering the engine, to avoid side-effects between tests
     self.e.stop()
     registry.unregister_engine(self.e)
Ejemplo n.º 3
0
 def tearDown(self):
     # Check that the NullEngine was not set as the default mlab engine.
     if not mlab.get_engine() is self._non_null_engine:
         raise AssertionError, \
                 "The NullEngine has overridden the default one"
     engine_manager.current_engine = None
     # Unregistering all unused engines.
     registry.unregister_engine(self._non_null_engine)
     for engine in registry.engines.keys():
         registry.unregister_engine(engine)
Ejemplo n.º 4
0
 def tearDown(self):
     engine_manager.current_engine = None
     # Unregistering the engine, to avoid side-effects between tests
     self.e.stop()
     registry.unregister_engine(self.e)
Ejemplo n.º 5
0
 def stop(self):
     registry.unregister_engine(self)
     self.running = False
Ejemplo n.º 6
0
 def tearDown(self):
     mlab.options.backend = self.backend
     for engine in registry.engines.keys():
         registry.unregister_engine(engine)
Ejemplo n.º 7
0
 def stop(self):
     registry.unregister_engine(self)
     self.running = False
Ejemplo n.º 8
0
 def tearDown(self):
     engine_manager.current_engine = None
     # Unregistering the engine, to avoid side-effects between tests
     self.e.stop()
     registry.unregister_engine(self.e)