Mercurial > p > roundup > code
diff test/rest_common.py @ 7389:613f822f1f24
Support pyjwt-2.7.0 in test_bad_audience_jwt
Exception raised changed format.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Wed, 24 May 2023 10:07:50 -0400 |
| parents | 886a5c767d7e |
| children | 451232f83244 |
line wrap: on
line diff
--- a/test/rest_common.py Tue May 23 23:37:53 2023 -0400 +++ b/test/rest_common.py Wed May 24 10:07:50 2023 -0400 @@ -3974,7 +3974,8 @@ self.dummy_client.main() # user will be 1 as there is no auth self.assertTrue('1', self.db.getuid()) - self.assertEqual(out[0], b'Invalid Login - Invalid audience') + self.assertIn(out[0], [b'Invalid Login - Invalid audience', + b"Invalid Login - Audience doesn't match"]) @skip_jwt def test_bad_roles_jwt(self):
