Exemple #1
0
def test_hooks_can_Be_run():
    hooks = Hooks()
    thing = object()
    hooks.yeah_hook = [lambda thing: thing]
    actual = hooks.run('yeah_hook', thing)
    assert actual is thing
def test_hooks_can_Be_run():
    hooks = Hooks()
    thing = object()
    hooks.yeah_hook = [lambda thing: thing]
    actual = hooks.run('yeah_hook', thing)
    assert actual is thing, actual