예제 #1
0
파일: hook_tests.py 프로젝트: cement/cement
 def test_hook_is_defined(self):
     self.ok(hook.defined('nosetests_hook'))
     self.eq(hook.defined('some_bogus_hook'), False)
예제 #2
0
 def test_hook_is_defined(self):
     self.ok(hook.defined('nosetests_hook'))
     self.eq(hook.defined('some_bogus_hook'), False)
예제 #3
0
파일: hook_tests.py 프로젝트: Ichag/cement
 def test_hook_is_defined(self):
     self.ok(hook.defined("nosetests_hook"))
     self.eq(hook.defined("some_bogus_hook"), False)
예제 #4
0
 def test_define_hooks_meta(self):
     app = self.make_app(APP, define_hooks=['my_custom_hook'])
     app.setup()
     self.ok(hook.defined('my_custom_hook'))
예제 #5
0
 def test_define_hooks_meta(self):
     app = self.make_app(APP, define_hooks=['my_custom_hook'])
     app.setup()
     self.ok(hook.defined('my_custom_hook'))