def test_missing_hook(): hooks = limbo.init_plugins("test/plugins") eq_(limbo.run_hook(hooks, "nonexistant", {"text": u"!echo bananas"}, None), [])
def test_run_hook(): hooks = limbo.init_plugins("test/plugins") eq_(limbo.run_hook(hooks, "message", {"text": u"!echo bananas"}, None), [u"!echo bananas"])