'Test behavior for Iq.unhandled.'

def testUnhandled(self):

    self.stream_start()
    self.recv('\n                                        <iq    id="test"    type="get">\n                                                <query    xmlns="test"    />\n                                            </iq>\n                                ')
    iq = self.Iq()
    iq['id'] = 'test'
    iq['error']['condition'] = 'feature-not-implemented'
    iq['error']['text'] = 'No    handlers    registered    for    this    request.'
    self.send(iq, '\n                                        <iq    id="test"    type="error">\n                                                <error    type="cancel">\n                                                        <feature-not-implemented    xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"    />\n                                                        <text    xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">\n                                                                No    handlers    registered    for    this    request.\n                                                        </text>\n                                                </error>\n                                        </iq>\n                                ')
