Beispiel #1
0
 def test_from_json(self):
     from acme.jose.jwk import JWK
     self.assertEqual(
         self.jwk256, JWK.from_json(self.jwk256json))
     self.assertEqual(
         self.jwk512, JWK.from_json(self.jwk512json))
     self.assertEqual(self.private, JWK.from_json(self.private_json))
Beispiel #2
0
 def test_from_json(self):
     from acme.jose.jwk import JWK
     self.assertEqual(
         self.jwk256, JWK.from_json(self.jwk256json))
     self.assertEqual(
         self.jwk512, JWK.from_json(self.jwk512json))
     self.assertEqual(self.private, JWK.from_json(self.private_json))
Beispiel #3
0
 def test_from_json_hashable(self):
     from acme.jose.jwk import JWK
     hash(JWK.from_json(self.jwk256json))
Beispiel #4
0
 def test_from_json_private_small(self):
     from acme.jose.jwk import JWK
     self.assertEqual(self.private, JWK.from_json(self.private_json_small))
Beispiel #5
0
 def test_from_json_hashable(self):
     from acme.jose.jwk import JWK
     hash(JWK.from_json(self.jwk256json))
Beispiel #6
0
 def test_from_json_private_small(self):
     from acme.jose.jwk import JWK
     self.assertEqual(self.private, JWK.from_json(self.private_json_small))
 def test_from_json(self):
     from acme.jose.jwk import JWK
     self.assertEqual(self.jwk256, JWK.from_json(self.jwk256json))