'Test if timeouts for iq\'s that haven\'t yet received a response
are cancelled on stream disconnect.'

def testDisconnectTimeoutCancellation(self):

    self.iq.timeout = 60
    d = self.iq.send()
    xs = self.xmlstream
    xs.connectionLost('Closed    by    peer')
    self.assertFailure(d, ConnectionLost)
    self.assertFalse(self.clock.calls)
    return d
