Skip to content

Commit 56dc9ed

Browse files
committed
Added additional POSIX test path
Signed-off-by: Doug Halley <[email protected]>
1 parent 7ef4988 commit 56dc9ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_url_conversions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
WINDOWS_UNC_URL = "file://unc/path/sub dir/file.ext"
4141
CORRECTED_WINDOWS_UNC_PATH = "//unc/path/sub dir/file.ext"
4242

43+
POSIX_LOCALHOST_URL = "file://localhost/path/sub dir/file.ext"
4344
ENCODED_POSIX_URL = "file:///path/sub%20dir/file.ext"
4445
POSIX_URL = "file:///path/sub dir/file.ext"
4546
CORRECTED_POSIX_PATH = "/path/sub dir/file.ext"
@@ -74,7 +75,7 @@ def test_windows_unc_urls(self):
7475
self.assertEqual(processed_url, CORRECTED_WINDOWS_UNC_PATH)
7576

7677
def test_posix_urls(self):
77-
for url in (ENCODED_POSIX_URL, POSIX_URL):
78+
for url in (ENCODED_POSIX_URL, POSIX_URL, POSIX_LOCALHOST_URL):
7879
processed_url = otio.url_utils.filepath_from_url(url)
7980
self.assertEqual(processed_url, CORRECTED_POSIX_PATH)
8081

0 commit comments

Comments
 (0)