def test_upload_file_proxies_to_meta_client(self): inject.bucket_upload_file(self.bucket, Filename='foo', Key='key') self.bucket.meta.client.upload_file.assert_called_with( Filename='foo', Bucket=self.bucket.name, Key='key', ExtraArgs=None, Callback=None, Config=None)