'L{HTTPChannel} unregisters itself when it has loseConnection called.'

def test_HTTPChannelUnregistersSelfWhenCallingLoseConnection(self):

    (channel, transport) = self.buildChannelAndTransport(StringTransport(), DummyHTTPHandler)
    channel.loseConnection()
    self.assertIs(transport.producer, None)
    self.assertIs(transport.streaming, None)
