Exemple #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))
Exemple #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))
Exemple #3
0
 def test_from_json_hashable(self):
     from acme.jose.jwk import JWK
     hash(JWK.from_json(self.jwk256json))
Exemple #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))
Exemple #5
0
 def test_from_json_hashable(self):
     from acme.jose.jwk import JWK
     hash(JWK.from_json(self.jwk256json))
Exemple #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))