def test_hook_is_defined(self): self.ok(hook.defined('nosetests_hook')) self.eq(hook.defined('some_bogus_hook'), False)
def test_hook_is_defined(self): self.ok(hook.defined("nosetests_hook")) self.eq(hook.defined("some_bogus_hook"), False)
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'))