示例#1
0
def test_valid():
    assert _unix_path(val) == val
示例#2
0
def test_mix():
    assert _unix_path("hello\\this/is.text") == val
示例#3
0
def test_none():
    with pytest.raises(TypeError) as exc:
        _unix_path(None)
    assert "join() argument must be str or bytes" in str(exc.value)
示例#4
0
def test_windows():
    assert _unix_path("hello\\this\\is.text") == val