示例#1
0
def test_relative_normpath():
    test_file = "/my/test/path/file.txt"
    assert relative_normpath(test_file, "/my/test") == "path/file.txt"
    assert relative_normpath(None, "/my/test") is None
示例#2
0
def test_relative_normpath():
    assert relative_normpath("/my/test/path/file.txt",
                             "/my/test") == "path/file.txt"
    assert relative_normpath(None, "/my/test") is None
示例#3
0
def test_relative_normpath():
    assert relative_normpath("/my/test/path/file.txt", "/my/test") == "path/file.txt"