Beispiel #1
0
class Falsy(Assertion):
    """Asserts that `value` is falsy.

    .. versionadded:: 0.0.1
    """
    #:
    reason = '{0} is not falsy'
    op = pydash.negate(bool)
Beispiel #2
0
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)
Beispiel #3
0
def test_negate(func, args):
    assert _.negate(func)(*args) == (not func(*args))
Beispiel #4
0
def test_negate(func, args):
    assert _.negate(func)(*args) == (not func(*args))