def test_lazy_object_meth_call(): class Foo: pass foo = Foo() foo.m = lambda: 123 rr = RouterLazy(foo) assert(rr.m() == 123)
def test_lazy_class_meth_call(): class Foo: def m(self): return 123 foo = Foo() rr = RouterLazy(foo) assert(rr.m() == 123)