'Set log file name and check the selected output stream.
@param name: The name of the file.
@param expectedStream: The expected stream.'

def _testLogFile(self, name, expectedStream):

    options = TwistOptions()
    options.opt_log_file(name)
    self.assertIdentical(options['logFile'], expectedStream)
