'L{_NewConnectionHelper.cleanupConnection} closes the transport cleanly
if called with C{immediate} set to C{False}.'

def test_cleanupConnectionNotImmediately(self):

    helper = _NewConnectionHelper(None, None, None, None, None, None, None, None, None, None)
    connection = SSHConnection()
    connection.transport = StringTransport()
    helper.cleanupConnection(connection, False)
    self.assertTrue(connection.transport.disconnecting)
