(self)
| 123 | ) |
| 124 | |
| 125 | def test_input_yaml_bytes(self): |
| 126 | expected_args = { |
| 127 | 'Bucket': 'mybucket', |
| 128 | 'Key': 'mykey', |
| 129 | 'Body': b'foo', |
| 130 | } |
| 131 | command = [ |
| 132 | 's3api', |
| 133 | 'put-object', |
| 134 | '--cli-input-yaml', |
| 135 | dump_yaml_to_str(self.yaml, expected_args), |
| 136 | ] |
| 137 | self.run_cmd(command) |
| 138 | self.assertEqual(self.last_kwargs['Body'].getvalue(), b'foo') |
| 139 | |
| 140 | def test_input_yaml_ignores_comments(self): |
| 141 | command = [ |
nothing calls this directly
no test coverage detected