Example #1
0
 def test_w_windows_path(self):
     with self.assertRaisesRegexp(TypeError, 'unsupported operand'):
         posix.PosixPath('my/path') + windows.WindowsPath(r'other\path')
Example #2
0
 def test_success(self):
     p = windows.WindowsPath(r'my\path') / r'other\path'
     self.assertEquals(p, windows.WindowsPath(r'my\path\other\path'))
Example #3
0
 def test_w_swift_component(self):
     with self.assertRaisesRegexp(TypeError, 'unsupported operand'):
         windows.WindowsPath(r'my\path') + swift.SwiftPath('swift://t/c/name').name
Example #4
0
 def test_w_s3_component(self):
     with self.assertRaisesRegexp(TypeError, 'unsupported operand'):
         windows.WindowsPath(r'my\path') + s3.S3Path('s3://b/name').name
Example #5
0
 def test_w_posix_path(self):
     with self.assertRaisesRegexp(TypeError, 'unsupported operand'):
         windows.WindowsPath(r'my\path') / posix.PosixPath('other/path')