def test_from_json(self): from acme.messages import Revocation self.assertEqual(Revocation.from_json(self.jmsg), self.msg)
def test_from_json_hashable(self): from acme.messages import Revocation hash(Revocation.from_json(self.rev.to_json()))