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

Function assert_equal

tests/unit/botocore/test_protocols.py:433–443  ·  view source on GitHub ↗
(first, second, prefix)

Source from the content-addressed store, hash-verified

431
432
433def assert_equal(first, second, prefix):
434 # A better assert equals. It allows you to just provide
435 # prefix instead of the entire message.
436 try:
437 assert first == second
438 except Exception:
439 try:
440 better = f"{prefix} (actual != expected)\n{json.dumps(first, indent=2)} !=\n{json.dumps(second, indent=2)}"
441 except (ValueError, TypeError):
442 better = f"{prefix} (actual != expected)\n{first} !=\n{second}"
443 raise AssertionError(better)
444
445
446def _serialize_request_description(request_dict):

Callers 6

_assert_endpoints_equalFunction · 0.70
test_output_complianceFunction · 0.70
_assert_requests_equalFunction · 0.70
_assert_request_bodyFunction · 0.70
_assert_json_bodiesFunction · 0.70
_assert_xml_bodiesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected