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

Method test_dump_to_str

tests/unit/test_utils.py:857–861  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

855 self.yaml.representer.default_flow_style = False
856
857 def test_dump_to_str(self):
858 obj = {'A': 1, 'parameter': "something"}
859 expected_result = "A: 1\nparameter: something\n"
860 result = dump_yaml_to_str(self.yaml, obj)
861 self.assertEqual(result, expected_result)
862
863
864@pytest.fixture

Callers

nothing calls this directly

Calls 1

dump_yaml_to_strFunction · 0.90

Tested by

no test coverage detected