示例#1
0
文件: logic.py 项目: alecxe/verify
class Falsy(Assertion):
    """Asserts that `value` is falsy.

    .. versionadded:: 0.0.1
    """
    #:
    reason = '{0} is not falsy'
    op = pydash.negate(bool)
示例#2
0
文件: logic.py 项目: wikiped/verify
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)
示例#3
0
def test_negate(func, args):
    assert _.negate(func)(*args) == (not func(*args))
示例#4
0
def test_negate(func, args):
    assert _.negate(func)(*args) == (not func(*args))