Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_is_deep_arg():
assert is_deep_arg(lambda: 0)
assert not is_deep_arg(lambda x: 0)
assert not is_deep_arg(lambda x=None: 0)
assert not is_deep_arg(lambda *x: 0)
assert not is_deep_arg(lambda **x: 0)
assert not is_deep_arg(test_is_deep_arg)
assert not is_deep_arg(Foo)
assert not is_deep_arg(Foo.bar1)
assert not is_deep_arg(Foo().bar1)
assert not is_deep_arg(Foo.bar2)
assert not is_deep_arg(Foo().bar2)
def test_is_deep_arg():
assert is_deep_arg(lambda: 0)
assert not is_deep_arg(lambda x: 0)
assert not is_deep_arg(lambda x=None: 0)
assert not is_deep_arg(lambda *x: 0)
assert not is_deep_arg(lambda **x: 0)
assert not is_deep_arg(test_is_deep_arg)
assert not is_deep_arg(Foo)
assert not is_deep_arg(Foo.bar1)
assert not is_deep_arg(Foo().bar1)
assert not is_deep_arg(Foo.bar2)
assert not is_deep_arg(Foo().bar2)
def test_is_deep_arg():
assert is_deep_arg(lambda: 0)
assert not is_deep_arg(lambda x: 0)
assert not is_deep_arg(lambda x=None: 0)
assert not is_deep_arg(lambda *x: 0)
assert not is_deep_arg(lambda **x: 0)
assert not is_deep_arg(test_is_deep_arg)
assert not is_deep_arg(Foo)
assert not is_deep_arg(Foo.bar1)
assert not is_deep_arg(Foo().bar1)
assert not is_deep_arg(Foo.bar2)
assert not is_deep_arg(Foo().bar2)
def test_is_deep_arg():
assert is_deep_arg(lambda: 0)
assert not is_deep_arg(lambda x: 0)
assert not is_deep_arg(lambda x=None: 0)
assert not is_deep_arg(lambda *x: 0)
assert not is_deep_arg(lambda **x: 0)
assert not is_deep_arg(test_is_deep_arg)
assert not is_deep_arg(Foo)
assert not is_deep_arg(Foo.bar1)
assert not is_deep_arg(Foo().bar1)
assert not is_deep_arg(Foo.bar2)
assert not is_deep_arg(Foo().bar2)
def test_is_deep_arg():
assert is_deep_arg(lambda: 0)
assert not is_deep_arg(lambda x: 0)
assert not is_deep_arg(lambda x=None: 0)
assert not is_deep_arg(lambda *x: 0)
assert not is_deep_arg(lambda **x: 0)
assert not is_deep_arg(test_is_deep_arg)
assert not is_deep_arg(Foo)
assert not is_deep_arg(Foo.bar1)
assert not is_deep_arg(Foo().bar1)
assert not is_deep_arg(Foo.bar2)
assert not is_deep_arg(Foo().bar2)
def test_is_deep_arg():
assert is_deep_arg(lambda: 0)
assert not is_deep_arg(lambda x: 0)
assert not is_deep_arg(lambda x=None: 0)
assert not is_deep_arg(lambda *x: 0)
assert not is_deep_arg(lambda **x: 0)
assert not is_deep_arg(test_is_deep_arg)
assert not is_deep_arg(Foo)
assert not is_deep_arg(Foo.bar1)
assert not is_deep_arg(Foo().bar1)
assert not is_deep_arg(Foo.bar2)
assert not is_deep_arg(Foo().bar2)
def test_is_deep_arg():
assert is_deep_arg(lambda: 0)
assert not is_deep_arg(lambda x: 0)
assert not is_deep_arg(lambda x=None: 0)
assert not is_deep_arg(lambda *x: 0)
assert not is_deep_arg(lambda **x: 0)
assert not is_deep_arg(test_is_deep_arg)
assert not is_deep_arg(Foo)
assert not is_deep_arg(Foo.bar1)
assert not is_deep_arg(Foo().bar1)
assert not is_deep_arg(Foo.bar2)
assert not is_deep_arg(Foo().bar2)