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

Function _assert_endpoints_equal

tests/unit/botocore/test_protocols.py:180–185  ·  view source on GitHub ↗
(actual, expected, endpoint)

Source from the content-addressed store, hash-verified

178
179
180def _assert_endpoints_equal(actual, expected, endpoint):
181 if 'host' not in expected:
182 return
183 prepare_request_dict(actual, endpoint)
184 actual_host = urlsplit(actual['url']).netloc
185 assert_equal(actual_host, expected['host'], 'Host')
186
187
188class MockRawResponse:

Callers 1

test_input_complianceFunction · 0.85

Calls 2

prepare_request_dictFunction · 0.90
assert_equalFunction · 0.70

Tested by

no test coverage detected