@thread_test
  def testFetchLogsScriptMerge(self):
    log_urls = self._FetchLogs(self._users[1].user_id, start_timestamp=self._t,
                               end_timestamp=self._t + SECONDS_PER_DAY, exp_logs=self._user1_logs)
    # Redirect stdout to a file for testing.
    output = StringIO()
    options.options.merge_logs = True
    fetch_logs.MergeLogs(log_urls, output)
    self.assertEqual(self._merged, output.getvalue())
    output.close()
Verify merged output from fetch of all logs for user 1.
dataset/ETHPy150Open viewfinderco/viewfinder/backend/www/test/fetch_logs_test.py/FetchLogsTestCase.testFetchLogsScriptMerge