def test_w_swift_component(self): p = posix.PosixPath('my/path') / swift.SwiftPath( 'swift://t/c/name').name self.assertEquals(p, posix.PosixPath('my/path/name')) self.assertEquals( stor.join('my/path', swift.SwiftPath('swift://t/c/name').name), p)
def test_w_swift_component(self): p = posix.PosixPath('my/path') + swift.SwiftPath( 'swift://t/c/name').name self.assertEquals(p, posix.PosixPath('my/pathname'))
def test_w_swift_component(self): with self.assertRaisesRegexp(TypeError, 'unsupported operand'): windows.WindowsPath(r'my\path') + swift.SwiftPath('swift://t/c/name').name