Beispiel #1
0
    def setUp(self):
        from letsencrypt.acme.messages import Revocation
        self.msg = Revocation()

        self.jmsg = {
            'type': 'revocation',
        }
    def setUp(self):
        from letsencrypt.acme.messages import Revocation
        self.msg = Revocation()

        self.jmsg = {
            'type': 'revocation',
        }
class RevocationTest(unittest.TestCase):
    def setUp(self):
        from letsencrypt.acme.messages import Revocation
        self.msg = Revocation()
        self.jmsg = {'type': 'revocation'}

    def test_to_json(self):
        self.assertEqual(self.msg.to_json(), self.jmsg)

    def test_from_json(self):
        from letsencrypt.acme.messages import Revocation
        self.assertEqual(Revocation.from_json(self.jmsg), self.msg)
class RevocationTest(unittest.TestCase):

    def setUp(self):
        from letsencrypt.acme.messages import Revocation
        self.msg = Revocation()
        self.jmsg = {'type': 'revocation'}

    def test_to_partial_json(self):
        self.assertEqual(self.msg.to_partial_json(), self.jmsg)

    def test_from_json(self):
        from letsencrypt.acme.messages import Revocation
        self.assertEqual(Revocation.from_json(self.jmsg), self.msg)
 def test_from_json(self):
     from letsencrypt.acme.messages import Revocation
     self.assertEqual(Revocation.from_json(self.jmsg), self.msg)
 def test_from_json(self):
     from letsencrypt.acme.messages import Revocation
     self.assertEqual(Revocation.from_json(self.jmsg), self.msg)