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)
def test_w_s3_component(self): p = posix.PosixPath('my/path') + s3.S3Path('s3://b/name').name self.assertEquals(p, posix.PosixPath('my/pathname'))
def test_w_s3_component(self): with self.assertRaisesRegexp(TypeError, 'unsupported operand'): windows.WindowsPath(r'my\path') + s3.S3Path('s3://b/name').name