Add tests for checking if path are correctly cleaned

This commit is contained in:
Julien Duponchelle
2017-04-18 15:50:11 +02:00
parent 691c2dfd8e
commit b4434b5134
2 changed files with 3 additions and 1 deletions

View File

@ -24,6 +24,8 @@ def test_force_unix_path():
assert force_unix_path("a\\b") == "a/b"
assert force_unix_path("a\\b\\..\\c") == "a/c"
assert force_unix_path("C:\Temp") == "C:/Temp"
assert force_unix_path(force_unix_path("C:\Temp")) == "C:/Temp"
assert force_unix_path("a//b") == "a/b"
def test_macaddress_to_int():