summaryrefslogtreecommitdiffstats
path: root/jwcrypto/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'jwcrypto/tests.py')
-rw-r--r--jwcrypto/tests.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/jwcrypto/tests.py b/jwcrypto/tests.py
index e17a295..888ad39 100644
--- a/jwcrypto/tests.py
+++ b/jwcrypto/tests.py
@@ -634,3 +634,11 @@ class TestJWE(unittest.TestCase):
def test_A5(self):
E = jwe.JWE()
E.deserialize(E_A5_ex)
+
+
+class ConformanceTests(unittest.TestCase):
+
+ def test_unknown_key_params(self):
+ key = jwk.JWK(kty='oct', k='secret', unknown='mystery')
+ # pylint: disable=protected-access
+ self.assertEqual('mystery', key._unknown['unknown'])