Esempio n. 1
0
 def test_from_json_unrecognized(self):
     from acme.challenges import Challenge
     from acme.challenges import UnrecognizedChallenge
     chall = UnrecognizedChallenge({"type": "foo"})
     self.assertEqual(chall, Challenge.from_json(chall.jobj))
Esempio n. 2
0
 def setUp(self):
     from acme.challenges import UnrecognizedChallenge
     self.jobj = {"type": "foo"}
     self.chall = UnrecognizedChallenge(self.jobj)