コード例 #1
0
ファイル: test_composite.py プロジェクト: stug/mrjob
    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)
コード例 #2
0
ファイル: test_composite.py プロジェクト: yzhanggithub/mrjob
    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')