def test_arginfo_cache(): def foo(a): pass assert not arginfo.is_cached(foo) arginfo(foo) assert arginfo.is_cached(foo)
def test_arginfo_cache_callable(): class Foo(object): def __call__(self): pass foo = Foo() assert not arginfo.is_cached(foo) arginfo(foo) assert arginfo.is_cached(foo)