'Test that untracked iq responses don\'t trigger any action.
Untracked means that the id of the incoming response iq is not
in the stream\'s C{iqDeferreds} dictionary.'

def testNonTrackedResponse(self):

    xs = self.xmlstream
    xmlstream.upgradeWithIQResponseTracker(xs)
    self.assertFalse(xs.iqDeferreds)
    def cb(iq):
        self.assertFalse(getattr(iq, 'handled', False))
    xs.addObserver('/iq', cb, (-1))
    xs.dataReceived("<iq    type='result'    id='test'/>")
