(actual, expected, endpoint)
| 178 | |
| 179 | |
| 180 | def _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 | |
| 188 | class MockRawResponse: |
no test coverage detected