Пример #1
0
def test_not_a_string_at_all():
    assert not is_any_string_type(1)
Пример #2
0
def test_text_type():
    assert is_any_string_type(six.text_type('test'))
Пример #3
0
def test_binary_type():
    assert is_any_string_type(six.binary_type(b'test'))
Пример #4
0
def test_not_a_string_at_all():
    assert not is_any_string_type(1)
Пример #5
0
def test_text_type():
    assert is_any_string_type(six.text_type('test'))
Пример #6
0
def test_binary_type():
    assert is_any_string_type(six.binary_type(b'test'))