aboutsummaryrefslogtreecommitdiff
path: root/tests/test_jwt.py
diff options
context:
space:
mode:
authorDanny Hermes <daniel.j.hermes@gmail.com>2016-02-04 11:29:07 -0800
committerDanny Hermes <daniel.j.hermes@gmail.com>2016-02-04 11:29:07 -0800
commite676a025c415ceb639a9bd4d225d34fca99840ce (patch)
tree65249c6f2956ef124d851c50b64864a45e470868 /tests/test_jwt.py
parent9bd85220faf18349fd4ba0d4a02a1588bcf0f1f6 (diff)
downloadoauth2client-e676a025c415ceb639a9bd4d225d34fca99840ce.tar.gz
Adding a pure Python crypt sub-module.
Resurrects #1.
Diffstat (limited to 'tests/test_jwt.py')
-rw-r--r--tests/test_jwt.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_jwt.py b/tests/test_jwt.py
index 94aba16..f4a3bdb 100644
--- a/tests/test_jwt.py
+++ b/tests/test_jwt.py
@@ -58,7 +58,7 @@ class CryptTests(unittest2.TestCase):
def _check_sign_and_verify(self, private_key_file):
private_key = datafile(private_key_file)
- public_key = datafile('publickey.pem')
+ public_key = datafile('public_cert.pem')
# We pass in a non-bytes password to make sure all branches
# are traversed in tests.
@@ -74,7 +74,7 @@ class CryptTests(unittest2.TestCase):
self.assertFalse(verifier.verify(b'foo', u'bad signagure'))
def _check_jwt_failure(self, jwt, expected_error):
- public_key = datafile('publickey.pem')
+ public_key = datafile('public_cert.pem')
certs = {'foo': public_key}
audience = ('https://www.googleapis.com/auth/id?client_id='
'external_public_key@testing.gserviceaccount.com')
@@ -100,7 +100,7 @@ class CryptTests(unittest2.TestCase):
def test_verify_id_token(self):
jwt = self._create_signed_jwt()
- public_key = datafile('publickey.pem')
+ public_key = datafile('public_cert.pem')
certs = {'foo': public_key}
audience = 'some_audience_address@testing.gserviceaccount.com'
contents = crypt.verify_signed_jwt_with_certs(jwt, certs, audience)