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

Method test_error

tests/unit/customizations/sso/test_utils.py:308–318  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

306 assert actual_state == expected_state
307
308 def test_error(self):
309 expected_code = 'Failed'
310 url = self.url + f'?error={expected_code}'
311
312 http = urllib3.PoolManager()
313 response = http.request("GET", url)
314
315 actual_code, actual_state = self.fetcher.get_auth_code_and_state()
316 assert response.status == 200
317 assert actual_code is None
318 assert actual_state is None
319
320
321@mock.patch(

Callers

nothing calls this directly

Calls 2

requestMethod · 0.80

Tested by

no test coverage detected