Skip to content

Commit

Permalink
authome.test: tighten up test for base64
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Percival committed Jul 27, 2017
1 parent 4a713d1 commit 9d4df2f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions authome/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ def test_auth_adal_with_bad_creds(self):
)
self.assertEqual(response.status_code, 401)
# legit header, but invalid payload
response = self.client.get(self.auth_url,
HTTP_AUTHORIZATION='Basic 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ+/==='
)
response = self.client.get(self.auth_url,
HTTP_AUTHORIZATION='Basic '+base64.b64encode(b'notlegit').decode('utf-8')
)
Expand Down

0 comments on commit 9d4df2f

Please sign in to comment.