コード例 #1
0
ファイル: test_utils.py プロジェクト: pipermerriam/flex
def test_not_a_string_at_all():
    assert not is_any_string_type(1)
コード例 #2
0
ファイル: test_utils.py プロジェクト: pipermerriam/flex
def test_text_type():
    assert is_any_string_type(six.text_type('test'))
コード例 #3
0
ファイル: test_utils.py プロジェクト: pipermerriam/flex
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'))