MCPcopy Create free account
hub / github.com/aws/aws-cli / test_input_yaml_bytes

Method test_input_yaml_bytes

tests/functional/test_cliinput.py:125–138  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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 = [

Callers

nothing calls this directly

Calls 3

dump_yaml_to_strFunction · 0.90
run_cmdMethod · 0.45
getvalueMethod · 0.45

Tested by

no test coverage detected