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