Exemple #1
0
 def test_parse_volume_windows_mixed_notations_native(self):
     windows_path = 'C:\\Foo:/root/foo'
     assert VolumeSpec._parse_win32(windows_path, False) == (
         'C:\\Foo',
         '/root/foo',
         'rw'
     )
Exemple #2
0
 def test_parse_volume_windows_just_drives_native(self):
     windows_path = 'E:\\:C:\\:ro'
     assert VolumeSpec._parse_win32(windows_path, False) == (
         'E:\\',
         'C:\\',
         'ro'
     )
Exemple #3
0
 def test_parse_volume_windows_mixed_notations_normalized(self):
     windows_path = 'C:\\Foo:/root/foo'
     assert VolumeSpec._parse_win32(windows_path, True) == (
         '/c/Foo',
         '/root/foo',
         'rw'
     )
Exemple #4
0
 def test_parse_volume_windows_just_drives_normalized(self):
     windows_path = 'E:\\:C:\\:ro'
     assert VolumeSpec._parse_win32(windows_path, True) == (
         '/e/',
         'C:\\',
         'ro'
     )
Exemple #5
0
 def test_parse_volume_windows_internal_path_native(self):
     windows_path = 'C:\\Users\\reimu\\scarlet:C:\\scarlet\\app:ro'
     assert VolumeSpec._parse_win32(windows_path, False) == (
         'C:\\Users\\reimu\\scarlet',
         'C:\\scarlet\\app',
         'ro'
     )
Exemple #6
0
 def test_parse_volume_windows_internal_path_normalized(self):
     windows_path = 'C:\\Users\\reimu\\scarlet:C:\\scarlet\\app:ro'
     assert VolumeSpec._parse_win32(windows_path, True) == (
         '/c/Users/reimu/scarlet',
         'C:\\scarlet\\app',
         'ro'
     )
Exemple #7
0
 def test_parse_volume_windows_absolute_path_native(self):
     windows_path = "c:\\Users\\me\\Documents\\shiny\\config:/opt/shiny/config:ro"
     assert VolumeSpec._parse_win32(windows_path, False) == (
         "c:\\Users\\me\\Documents\\shiny\\config",
         "/opt/shiny/config",
         "ro"
     )
Exemple #8
0
 def test_parse_volume_windows_absolute_path_normalized(self):
     windows_path = "c:\\Users\\me\\Documents\\shiny\\config:/opt/shiny/config:ro"
     assert VolumeSpec._parse_win32(windows_path, True) == (
         "/c/Users/me/Documents/shiny/config",
         "/opt/shiny/config",
         "ro"
     )
Exemple #9
0
 def test_parse_volume_windows_internal_path_native(self):
     windows_path = 'C:\\Users\\reimu\\scarlet:C:\\scarlet\\app:ro'
     assert VolumeSpec._parse_win32(windows_path,
                                    False) == ('C:\\Users\\reimu\\scarlet',
                                               'C:\\scarlet\\app', 'ro')
Exemple #10
0
 def test_parse_volume_windows_internal_path_normalized(self):
     windows_path = 'C:\\Users\\reimu\\scarlet:C:\\scarlet\\app:ro'
     assert VolumeSpec._parse_win32(windows_path,
                                    True) == ('/c/Users/reimu/scarlet',
                                              'C:\\scarlet\\app', 'ro')
Exemple #11
0
 def test_parse_volume_windows_absolute_path_native(self):
     windows_path = "c:\\Users\\me\\Documents\\shiny\\config:/opt/shiny/config:ro"
     assert VolumeSpec._parse_win32(
         windows_path, False) == ("c:\\Users\\me\\Documents\\shiny\\config",
                                  "/opt/shiny/config", "ro")
Exemple #12
0
 def test_parse_volume_windows_absolute_path_normalized(self):
     windows_path = "c:\\Users\\me\\Documents\\shiny\\config:/opt/shiny/config:ro"
     assert VolumeSpec._parse_win32(
         windows_path, True) == ("/c/Users/me/Documents/shiny/config",
                                 "/opt/shiny/config", "ro")
Exemple #13
0
 def test_parse_volume_windows_mixed_notations_native(self):
     windows_path = 'C:\\Foo:/root/foo'
     assert VolumeSpec._parse_win32(windows_path,
                                    False) == ('C:\\Foo', '/root/foo', 'rw')
Exemple #14
0
 def test_parse_volume_windows_mixed_notations_normalized(self):
     windows_path = 'C:\\Foo:/root/foo'
     assert VolumeSpec._parse_win32(windows_path,
                                    True) == ('/c/Foo', '/root/foo', 'rw')
Exemple #15
0
 def test_parse_volume_windows_just_drives_native(self):
     windows_path = 'E:\\:C:\\:ro'
     assert VolumeSpec._parse_win32(windows_path,
                                    False) == ('E:\\', 'C:\\', 'ro')
Exemple #16
0
 def test_parse_volume_windows_just_drives_normalized(self):
     windows_path = 'E:\\:C:\\:ro'
     assert VolumeSpec._parse_win32(windows_path,
                                    True) == ('/e/', 'C:\\', 'ro')