'Convenience function to reply to a message.
Args:
body: str: The body of the message
message_type, raw_xml: As per send_message.
send_message: Used for testing.
Returns:
A status code as per send_message.
Raises:
See send_message.'

def reply(self, body, message_type=MESSAGE_TYPE_CHAT, raw_xml=False, send_message=send_message):

    return send_message([self.sender], body, from_jid=self.to, message_type=message_type, raw_xml=raw_xml)
