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
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8
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():

View File

@ -133,7 +133,7 @@ def test_list_images(tmpdir):
'filename': 'test2.image',
'filesize': 7,
'md5sum': 'b0d5aa897d937aced5a6b1046e8f7e2e',
'path': force_unix_path(str(path2))
'path': str(path2)
}
]