Ejemplo n.º 1
0
 def test_w_s3_component(self):
     p = posix.PosixPath('my/path') / s3.S3Path('s3://b/name').name
     self.assertEquals(p, posix.PosixPath('my/path/name'))
     self.assertEquals(stor.join('my/path',
                                 s3.S3Path('s3://b/name').name), p)
Ejemplo n.º 2
0
 def test_w_s3_component(self):
     p = posix.PosixPath('my/path') + s3.S3Path('s3://b/name').name
     self.assertEquals(p, posix.PosixPath('my/pathname'))
Ejemplo n.º 3
0
 def test_w_s3_component(self):
     with self.assertRaisesRegexp(TypeError, 'unsupported operand'):
         windows.WindowsPath(r'my\path') + s3.S3Path('s3://b/name').name