예제 #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()
예제 #2
0
파일: test_app.py 프로젝트: anukat2015/AIR
 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()
예제 #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()
예제 #4
0
파일: test_app.py 프로젝트: Scalr/celery
 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()