Example #1
0
 def test_from_data_result(self):
     resp = Proto2Response.from_data("result")
     self.assertEqual(None, resp.error)
     self.assertEqual("result", resp.result)
Example #2
0
 def test_from_data_result(self):
     resp = Proto2Response.from_data("result")
     self.assertEqual(None, resp.error)
     self.assertEqual("result", resp.result)
Example #3
0
 def test_from_data_error(self):
     data = {"error": "error"}
     resp = Proto2Response.from_data(data)
     self.assertEqual(data, resp.error)
     self.assertEqual(None, resp.result)
Example #4
0
 def test_from_data_error(self):
     data = {"error": "error"}
     resp = Proto2Response.from_data(data)
     self.assertEqual(data, resp.error)
     self.assertEqual(None, resp.result)