Exemplo n.º 1
0
    def wrapper(self, request):

        def reset():
            EnvironmentManager.define_environment_cls(ThreadEnvironment)

        request.addfinalizer(reset)
        EnvironmentManager.define_environment_cls(MockEnvironment)
Exemplo n.º 2
0
 def check_bad_define_environment(self, env):
     try:
         EnvironmentManager.define_environment_cls(env)
         self.fail("Bad environment class")
     except EnvironmentException:
         pass
Exemplo n.º 3
0
 def tearDown(self):
     super(TestEnvironment, self).tearDown()
     EnvironmentManager.define_environment_cls(ThreadEnvironment)
Exemplo n.º 4
0
 def setUp(self):
     super(TestEnvironment, self).setUp()
     EnvironmentManager.define_environment_cls(MockEnvironment)
Exemplo n.º 5
0
 def check_bad_define_environment(self, env):
     try:
         EnvironmentManager.define_environment_cls(env)
         self.fail("Bad environment class")
     except EnvironmentException:
         pass
Exemplo n.º 6
0
 def tearDown(self):
     super(TestEnvironment, self).tearDown()
     EnvironmentManager.define_environment_cls(ThreadEnvironment)
Exemplo n.º 7
0
 def setUp(self):
     super(TestEnvironment, self).setUp()
     EnvironmentManager.define_environment_cls(MockEnvironment)
Exemplo n.º 8
0
 def reset():
     EnvironmentManager.define_environment_cls(ThreadEnvironment)