Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Commit

Permalink
fix a test
Browse files Browse the repository at this point in the history
  • Loading branch information
yugangw-msft committed Apr 23, 2018
1 parent c7b8870 commit d326031
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_authorization_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,17 @@ def test_happy_path(self):

# assert

# the caching layer adds a few extra fileds, let us pop them out for easier comparisoon
# the caching layer adds a few extra fields, let us pop them out for easier verification
for k in ['_clientId', '_authority', 'resource']:
token_response.pop(k)
self.assertTrue(util.is_match_token_response(response['decodedResponse'], token_response), 'The response did not match what was expected')

# verify a request was made on the wire
# verify a request on the wire was made
req = httpretty.last_request()
util.match_standard_request_headers(req)

# verify the same entry was cached
cached_items = context.cache.read_items()
# verify the same token entry was cached
cached_items = list(context.cache.read_items())
self.assertTrue(len(cached_items) == 1)
_, cached_entry = cached_items[0]
self.assertEqual(cached_entry, token_response)
Expand Down

0 comments on commit d326031

Please sign in to comment.