'L{StringTransport.loseConnection} toggles the C{disconnecting} instance
variable to C{True}.'

def test_loseConnectionSetsDisconnecting(self):

    self.assertFalse(self.transport.disconnecting)
    self.transport.loseConnection()
    self.assertTrue(self.transport.disconnecting)
