Commit 3bc514d4 authored by Simo Sorce's avatar Simo Sorce Committed by Simo Sorce

Test header using string not dict

Change one test to also test using strings instead of dicts as headers.
This is supported in the code but was not tested.
Signed-off-by: 's avatarSimo Sorce <>
Closes #96
parent 9721a314
......@@ -1075,7 +1075,9 @@ class TestJWT(unittest.TestCase):
key = jwk.JWK(**E_A2_key)
default_claims = {"iss": "test", "exp": None}
string_claims = '{"string_claim":"test"}'
t = jwt.JWT(A1_header, string_claims, default_claims=default_claims)
string_header = '{"alg":"RSA1_5","enc":"A128CBC-HS256"}'
t = jwt.JWT(string_header, string_claims,
token = t.serialize()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment