def make_request(self, message): self.test.assertEqual(self.requests.pop(0), message.ops_message.get_data()) message = xcp.OPSMessage(data=self.responses.pop(0)) if message.get_data()['is_success'] == '0': raise errors.XCPError(message) return message
def assert_encode_decode_invariant(self, data): self.assertEqual(data, xcp.OPSMessage(data=data).get_data())
def assert_decoded_xml(self, data, xml): self.assertEqual(data, xcp.OPSMessage(xml=xml).get_data())