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:
Craig Citro
2014-05-22 11:05:52 -07:00
parent b2b6053190
commit e48d95189d

View File

@@ -526,7 +526,7 @@ class OAuth2WebServerFlowTest(unittest.TestCase):
self.assertRaises(VerifyJwtTokenError, self.flow.step2_exchange,
'some random code', http=http)
def test_exchange_id_token_fail(self):
def test_exchange_id_token(self):
body = {'foo': 'bar'}
payload = base64.urlsafe_b64encode(simplejson.dumps(body)).strip('=')
jwt = (base64.urlsafe_b64encode('stuff')+ '.' + payload + '.' +