'Test if the deferred associated with an iq request is removed
from the list kept in the L{XmlStream} object after it has
been fired.'

def testCleanup(self):

    d = self.iq.send()
    xs = self.xmlstream
    xs.dataReceived(("<iq    type='result'    id='%s'/>" % self.iq['id']))
    self.assertNotIn(self.iq['id'], xs.iqDeferreds)
    return d
