Exemplo n.º 1
0
def test_valid():
    assert _unix_path(val) == val
Exemplo n.º 2
0
def test_mix():
    assert _unix_path("hello\\this/is.text") == val
Exemplo n.º 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)
Exemplo n.º 4
0
def test_windows():
    assert _unix_path("hello\\this\\is.text") == val