Example #1
0
    def test_from_json_unrecognized(self):
        from acme.challenges import Challenge
        from acme.challenges import UnrecognizedChallenge

        chall = UnrecognizedChallenge({"type": "foo"})
        # pylint: disable=no-member
        self.assertEqual(chall, Challenge.from_json(chall.jobj))
Example #2
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))