Пример #1
0
def test_is_string_or_callable_true(inp):
    assert is_string_or_callable(inp)
Пример #2
0
def test_is_string_or_callable():
    assert is_string_or_callable('42.0')
    assert is_string_or_callable(lambda: 42.0)
    assert not is_string(42.0)
Пример #3
0
def test_is_string_or_callable_true(inp):
    assert is_string_or_callable(inp)
Пример #4
0
def test_is_string_or_callable():
    yield assert_true, is_string_or_callable('42.0')
    yield assert_true, is_string_or_callable(lambda: 42.0)
    yield assert_false, is_string(42.0)
Пример #5
0
def test_is_string_or_callable():
    yield assert_true, is_string_or_callable('42.0')
    yield assert_true, is_string_or_callable(lambda: 42.0)
    yield assert_false, is_string(42.0)