MCPcopy Index your code
hub / github.com/aws/aws-cli / test_parse_empty_values

Method test_parse_empty_values

tests/unit/test_argprocess.py:309–319  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

307 self.assertEqual(returned3, expected)
308
309 def test_parse_empty_values(self):
310 # A value can be omitted and will default to an empty string.
311 p = self.get_param_model('ec2.DescribeInstances.Filters')
312 expected = [
313 {"Name": "", "Values": ["i-1", "i-2"]},
314 {"Name": "architecture", "Values": ['']},
315 ]
316 returned = self.parse_shorthand(
317 p, ["Name=,Values=i-1,i-2", "Name=architecture,Values="]
318 )
319 self.assertEqual(returned, expected)
320
321 def test_list_structure_list_scalar_2(self):
322 p = self.get_param_model('emr.ModifyInstanceGroups.InstanceGroups')

Callers

nothing calls this directly

Calls 2

parse_shorthandMethod · 0.95
get_param_modelMethod · 0.80

Tested by

no test coverage detected