File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 40
40
WINDOWS_UNC_URL = "file://unc/path/sub dir/file.ext"
41
41
CORRECTED_WINDOWS_UNC_PATH = "//unc/path/sub dir/file.ext"
42
42
43
+ POSIX_LOCALHOST_URL = "file://localhost/path/sub dir/file.ext"
43
44
ENCODED_POSIX_URL = "file:///path/sub%20dir/file.ext"
44
45
POSIX_URL = "file:///path/sub dir/file.ext"
45
46
CORRECTED_POSIX_PATH = "/path/sub dir/file.ext"
@@ -74,7 +75,7 @@ def test_windows_unc_urls(self):
74
75
self .assertEqual (processed_url , CORRECTED_WINDOWS_UNC_PATH )
75
76
76
77
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 ):
78
79
processed_url = otio .url_utils .filepath_from_url (url )
79
80
self .assertEqual (processed_url , CORRECTED_POSIX_PATH )
80
81
You can’t perform that action at this time.
0 commit comments