コード例 #1
0
def test_fs_str():
    assert fs_str(
        "some path component/Something") == "some path component/Something"
    assert isinstance(fs_str("whatever"), str)
コード例 #2
0
def test_fs_str_with_bytes():
    with raises(AssertionError):
        fs_str(b"whatever")
コード例 #3
0
ファイル: test_utils.py プロジェクト: zenefits/pip-tools
def test_fs_str_with_bytes():
    with pytest.raises(TypeError, match=r"^fs_str\(\) argument must not be bytes$"):
        fs_str(b"whatever")