예제 #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
def test_fs_str_with_bytes():
    with pytest.raises(TypeError, match=r"^fs_str\(\) argument must not be bytes$"):
        fs_str(b"whatever")