mirror of
https://github.com/fergalmoran/picard.git
synced 2025-12-25 02:40:03 +00:00
Additional tests for win_prefix_longpath
This commit is contained in:
@@ -813,6 +813,14 @@ class WinPrefixLongpathTest(PicardTestCase):
|
||||
path = rf'\\server\{251 * "a"}'
|
||||
self.assertEqual(rf'\\?\UNC{path[1:]}', win_prefix_longpath(path))
|
||||
|
||||
def test_win_prefix_longpath_already_prefixed(self):
|
||||
path = r'\\?\C:\foo'
|
||||
self.assertEqual(path, win_prefix_longpath(path))
|
||||
|
||||
def test_win_prefix_longpath_already_prefixed_unc(self):
|
||||
path = r'\\?\server\someshare'
|
||||
self.assertEqual(path, win_prefix_longpath(path))
|
||||
|
||||
|
||||
class StrxfrmTest(PicardTestCase):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user