'It can store logs to a local file.'

def test_runWithLogFile(self):

    def cb_check_log(result):
        logContent = logPath.getContent()
        self.assertIn('Log    opened.', logContent)
    logPath = filepath.FilePath(self.mktemp())
    d = self.execute(remoteCommand='echo    goodbye', process=ConchTestOpenSSHProcess(), conchArgs=['--log', '--logfile', logPath.path, '--host-key-algorithms', 'ssh-rsa'])
    d.addCallback(self.assertEqual, 'goodbye\n')
    d.addCallback(cb_check_log)
    return d
