'Test modifying query element of Iq stanzas.'

def testQuery(self):

    iq = self.Iq()
    iq['query'] = 'query_ns'
    self.check(iq, '\n                                        <iq    id="0">\n                                                <query    xmlns="query_ns"    />\n                                        </iq>\n                                ')
    iq['query'] = 'query_ns2'
    self.check(iq, '\n                                        <iq    id="0">\n                                                <query    xmlns="query_ns2"    />\n                                        </iq>\n                                ')
    self.failUnless((iq['query'] == 'query_ns2'), "Query    namespace    doesn't    match")
    del iq['query']
    self.check(iq, '\n                                        <iq    id="0"    />\n                                ')
