예제 #1
0
def test_is_bool_false(inp):
    assert not is_bool(inp)
예제 #2
0
def test_is_bool():
    yield assert_equal, True, is_bool(True)
    yield assert_equal, True, is_bool(False)
    yield assert_equal, False, is_bool(1)
    yield assert_equal, False, is_bool('yooo hooo!')
예제 #3
0
def test_is_bool():
    yield assert_equal, True, is_bool(True)
    yield assert_equal, True, is_bool(False)
    yield assert_equal, False, is_bool(1)
    yield assert_equal, False, is_bool('yooo hooo!')
예제 #4
0
def test_is_bool_true(inp):
    assert is_bool(inp)
예제 #5
0
def test_is_bool_false(inp):
    assert False == is_bool(inp)
예제 #6
0
def test_is_bool_true(inp):
    assert True == is_bool(inp)
예제 #7
0
def test_is_bool():
    assert True == is_bool(True)
    assert True == is_bool(False)
    assert False == is_bool(1)
    assert False == is_bool('yooo hooo!')
예제 #8
0
파일: test_tools.py 프로젝트: mitnk/xonsh
def test_is_bool_false(inp):
    assert False == is_bool(inp)
예제 #9
0
파일: test_tools.py 프로젝트: mitnk/xonsh
def test_is_bool_true(inp):
    assert True == is_bool(inp)