Commit 9e4bcbfa authored by Simo Sorce's avatar Simo Sorce

Fix tests on py34

Need to decode encrypted payloads as they are returned (correctly)
as binary arrays.
Signed-off-by: default avatarSimo Sorce <simo@redhat.com>
parent 392fe501
......@@ -202,7 +202,7 @@ class TestJWK(unittest.TestCase):
E.add_recipient(key)
e = E.serialize()
E.deserialize(e, key)
self.assertEqual(E.payload, 'test')
self.assertEqual(E.payload.decode('utf-8'), 'test')
# RFC 7515 - A.1
A1_protected = \
......
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