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