Exemple #1
0
 def test_enable_disable_trace(self):
     try:
         _app.enable_trace()
         self.assertEqual(_app.app_or_default, _app._app_or_default_trace)
         _app.disable_trace()
         self.assertEqual(_app.app_or_default, _app._app_or_default)
     finally:
         _app.disable_trace()
Exemple #2
0
 def test_enable_disable_trace(self):
     try:
         _app.enable_trace()
         self.assertEqual(_app.app_or_default, _app._app_or_default_trace)
         _app.disable_trace()
         self.assertEqual(_app.app_or_default, _app._app_or_default)
     finally:
         _app.disable_trace()
Exemple #3
0
 def test_enable_disable_trace(self):
     try:
         _app.enable_trace()
         assert _state.app_or_default == _state._app_or_default_trace
         _app.disable_trace()
         assert _state.app_or_default == _state._app_or_default
     finally:
         _app.disable_trace()
Exemple #4
0
 def test_enable_disable_trace(self):
     try:
         _app.enable_trace()
         assert _state.app_or_default == _state._app_or_default_trace
         _app.disable_trace()
         assert _state.app_or_default == _state._app_or_default
     finally:
         _app.disable_trace()