def test_delegator_can_override():
    d = Delegatee()
    a = Delegator(d, foo=lambda self: 5)

    assert a.foo() == 5
def test_delegator_passes_through():
    d = Delegatee()
    a = Delegator(d)

    assert a.foo() == 10