예제 #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
파일: test_utils.py 프로젝트: waltton/flex
def test_not_a_string_at_all():
    assert not is_any_string_type(1)
예제 #5
0
파일: test_utils.py 프로젝트: waltton/flex
def test_text_type():
    assert is_any_string_type(six.text_type('test'))
예제 #6
0
파일: test_utils.py 프로젝트: waltton/flex
def test_binary_type():
    assert is_any_string_type(six.binary_type(b'test'))