summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Collis <michael.l.collis@gmail.com>2016-09-21 20:00:02 -0400
committerGitHub <noreply@github.com>2016-09-21 20:00:02 -0400
commitebd2fb9a3ff91daf272cac13a7b3456a6b40d26f (patch)
treec791221afae406d09152cda2a32d9634473f24d2
parent3bad492698298eb05331cddfd6aa47b87cae7631 (diff)
downloadpyjwt-ebd2fb9a3ff91daf272cac13a7b3456a6b40d26f.tar.gz
Fix tests to match
-rw-r--r--tests/test_api_jws.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_api_jws.py b/tests/test_api_jws.py
index c56ec4b..4e819bd 100644
--- a/tests/test_api_jws.py
+++ b/tests/test_api_jws.py
@@ -544,7 +544,7 @@ class TestJWS:
with open('tests/keys/testkey_ec', 'r') as ec_priv_file:
priv_eckey = load_pem_private_key(ensure_bytes(ec_priv_file.read()),
password=None, backend=default_backend())
- jws_message = jws.encode(payload, priv_eckey, algorithm='ES512')
+ jws_message = jws.encode(payload, priv_eckey, algorithm='ES521')
with open('tests/keys/testkey_ec.pub', 'r') as ec_pub_file:
pub_eckey = load_pem_public_key(ensure_bytes(ec_pub_file.read()), backend=default_backend())
@@ -553,7 +553,7 @@ class TestJWS:
# string-formatted key
with open('tests/keys/testkey_ec', 'r') as ec_priv_file:
priv_eckey = ec_priv_file.read()
- jws_message = jws.encode(payload, priv_eckey, algorithm='ES512')
+ jws_message = jws.encode(payload, priv_eckey, algorithm='ES521')
with open('tests/keys/testkey_ec.pub', 'r') as ec_pub_file:
pub_eckey = ec_pub_file.read()