def setUp(self):
     from letsencrypt.acme.messages import StatusRequest
     self.msg = StatusRequest(token=u'O7-s9MNq1siZHlgrMzi9_A')
     self.jmsg = {
         'type': 'statusRequest',
         'token': u'O7-s9MNq1siZHlgrMzi9_A',
     }
 def setUp(self):
     from letsencrypt.acme.messages import StatusRequest
     self.msg = StatusRequest(token=u'O7-s9MNq1siZHlgrMzi9_A')
     self.jmsg = {
         'type': 'statusRequest',
         'token': u'O7-s9MNq1siZHlgrMzi9_A',
     }
class StatusRequestTest(unittest.TestCase):
    def setUp(self):
        from letsencrypt.acme.messages import StatusRequest
        self.msg = StatusRequest(token=u'O7-s9MNq1siZHlgrMzi9_A')
        self.jmsg = {
            'type': 'statusRequest',
            'token': u'O7-s9MNq1siZHlgrMzi9_A',
        }

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

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

    def setUp(self):
        from letsencrypt.acme.messages import StatusRequest
        self.msg = StatusRequest(token=u'O7-s9MNq1siZHlgrMzi9_A')
        self.jmsg = {
            'type': 'statusRequest',
            'token': u'O7-s9MNq1siZHlgrMzi9_A',
        }

    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 StatusRequest
        self.assertEqual(StatusRequest.from_json(self.jmsg), self.msg)
 def test_from_json(self):
     from letsencrypt.acme.messages import StatusRequest
     self.assertEqual(StatusRequest.from_json(self.jmsg), self.msg)
 def test_from_json(self):
     from letsencrypt.acme.messages import StatusRequest
     self.assertEqual(StatusRequest.from_json(self.jmsg), self.msg)