Example #1
0
    def test_forward_put_with_part_size(self):
        fs = CompositeFilesystem()

        fs.add_fs('s3', self.s3_fs)

        fs.put('/path/to/file', 's3://walrus/file', part_size_mb=99999)
        self.s3_fs.put.assert_called_once_with(
            '/path/to/file', 's3://walrus/file', 99999)
Example #2
0
    def test_forward_put(self):
        # put() is a special case since the path that matters comes second
        fs = CompositeFilesystem()

        fs.add_fs('s3', self.s3_fs)

        fs.put('/path/to/file', 's3://walrus/file')
        self.s3_fs.put.assert_called_once_with(
            '/path/to/file', 's3://walrus/file')