Skip to content

Commit 6f8068f

Browse files
author
Rebecka Gulliksson
committed
Use a unicode message instead of bytes.
1 parent ac03bf3 commit 6f8068f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_3_jws.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,14 +149,14 @@ def test_1():
149149

150150

151151
def test_hmac_256():
152-
payload = b'Please take a moment to register today'
152+
payload = 'Please take a moment to register today'
153153
keys = [SYMKey(key=jwkest.intarr2bin(HMAC_KEY))]
154154
_jws = JWS(payload, alg="HS256")
155155
_jwt = _jws.sign_compact(keys)
156156

157157
info = JWS().verify_compact(_jwt, keys)
158158

159-
assert info == payload.decode("utf-8")
159+
assert info == payload
160160

161161

162162
def test_hmac_384():

0 commit comments

Comments
 (0)