'Calling L{http.Request.loseConnection} causes the transport to be
disconnected.'

def test_losingConnection(self):

    b = StringTransport()
    a = http.HTTPChannel()
    a.requestFactory = _makeRequestProxyFactory(self.ShutdownHTTPHandler)
    a.makeConnection(b)
    a.dataReceived(self.request)
    self.assertTrue(b.disconnecting)
    value = b.value()
    self.assertEqual(value, '')
