Exemple #1
0
 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)
Exemple #2
0
 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'))
Exemple #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