'Test that we can interact with a ClientXMPP instance.'

def testClientEcho(self):

    self.stream_start(mode='client')
    def echo(msg):
        msg.reply(('Thanks    for    sending:    %(body)s' % msg)).send()
    self.xmpp.add_event_handler('message', echo)
    self.recv('\n                                        <message    to="tester@localhost"    from="user@localhost">\n                                                <body>Hi!</body>\n                                        </message>\n                                ')
    self.send('\n                                        <message    to="user@localhost">\n                                                <body>Thanks    for    sending:    Hi!</body>\n                                        </message>\n                                ')
