def test_from_json_hashable(self): from acme.challenges import SimpleHTTPResponse hash(SimpleHTTPResponse.from_json(self.jmsg_http)) hash(SimpleHTTPResponse.from_json(self.jmsg_https))
def test_from_json(self): from acme.challenges import SimpleHTTPResponse self.assertEqual(self.msg_http, SimpleHTTPResponse.from_json(self.jmsg_http)) self.assertEqual(self.msg_https, SimpleHTTPResponse.from_json(self.jmsg_https))
def test_from_json(self): from acme.challenges import SimpleHTTPResponse self.assertEqual( self.msg_http, SimpleHTTPResponse.from_json(self.jmsg_http)) self.assertEqual( self.msg_https, SimpleHTTPResponse.from_json(self.jmsg_https))