class Falsy(Assertion): """Asserts that `value` is falsy. .. versionadded:: 0.0.1 """ #: reason = '{0} is not falsy' op = pydash.negate(bool)
class Falsy(Assertion): """Asserts that `value` is falsy. Aliases: - ``to_be_falsy`` - ``is_falsy`` .. versionadded:: 0.0.1 """ #: reason = '{0} is not falsy' op = pydash.negate(bool)
def test_negate(func, args): assert _.negate(func)(*args) == (not func(*args))
def test_negate(func, args): assert _.negate(func)(*args) == (not func(*args))