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

Method test_basic_fetch_token

tests/unit/botocore/test_utils.py:3476–3482  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3474 self._add_create_token_responses()
3475
3476 def test_basic_fetch_token(self):
3477 self._add_basic_device_auth_flow_responses()
3478
3479 with self.stubber:
3480 token = self.sso_token_fetcher.fetch_token(self.start_url)
3481 self.assertEqual(token.get('accessToken'), 'foo.token.string')
3482 self.stubber.assert_no_pending_responses()
3483
3484 def test_fetch_token_writes_cache(self):
3485 self._add_basic_device_auth_flow_responses()

Callers

nothing calls this directly

Tested by

no test coverage detected