Fix a test with a duplicate name.
Two tests in `test_oauth2client.py` had the same name, meaning one wasn't getting run. Fixed the name of the second (which now reflects that the test does indeed test a successful exchange).
This commit is contained in:
@@ -526,7 +526,7 @@ class OAuth2WebServerFlowTest(unittest.TestCase):
|
|||||||
self.assertRaises(VerifyJwtTokenError, self.flow.step2_exchange,
|
self.assertRaises(VerifyJwtTokenError, self.flow.step2_exchange,
|
||||||
'some random code', http=http)
|
'some random code', http=http)
|
||||||
|
|
||||||
def test_exchange_id_token_fail(self):
|
def test_exchange_id_token(self):
|
||||||
body = {'foo': 'bar'}
|
body = {'foo': 'bar'}
|
||||||
payload = base64.urlsafe_b64encode(simplejson.dumps(body)).strip('=')
|
payload = base64.urlsafe_b64encode(simplejson.dumps(body)).strip('=')
|
||||||
jwt = (base64.urlsafe_b64encode('stuff')+ '.' + payload + '.' +
|
jwt = (base64.urlsafe_b64encode('stuff')+ '.' + payload + '.' +
|
||||||
|
|||||||
Reference in New Issue
Block a user