tools/traffic_annotation/scripts/traffic_annotation_auditor_tests.py
def CheckAuditorResults(self):
    """Runs auditor using different configurations, expecting to run error free,
    and having equal results in the exported TSV file in all cases. The TSV file
    provides a summary of all annotations and their content.

    Returns:
      bool True if all results are as expected.
    """

    configs = [
        # Similar to trybot.
      [
          "--test-only",
          "--error-resilient",
      ],
      # Failing on any runtime error.
      [
          "--test-only",
      ],
      # No heuristic filtering.
      [
          "--test-only",
          "--no-filtering",
      ],
    ]

    self.last_result = None
    for config in configs:
      result = self._RunTest(config, USE_PYTHON_AUDITOR)
      if not result:
        print("No output for config: %s" % config)
        return False
      if self.last_result and self.last_result != result:
        print("Unexpected different results for config: %s" % config)
        return False
      self.last_result = result
    return True
Runs auditor using different configurations, expecting to run error free,
    and having equal results in the exported TSV file in all cases. The TSV file
    provides a summary of all annotations and their content.

    Returns:
      bool True if all results are as expected.
    
Runs auditor using different configurations, expecting to run error free,
and having equal results in the exported TSV file in all cases. The TSV file
provides a summary of all annotations and their content.
Runs auditor using different configurations expecting to run error free and having equal results in the exported TSV file in all cases . The TSV file provides a summary of all annotations and their content .
def CheckAuditorResults(self):
    configs = [
      [
          "--test-only",
          "--error-resilient",
      ],
      [
          "--test-only",
      ],
      [
          "--test-only",
          "--no-filtering",
      ],
    ]
    self.last_result = None
    for config in configs:
      result = self._RunTest(config, USE_PYTHON_AUDITOR)
      if not result:
        print("No output for config: %s" % config)
        return False
      if self.last_result and self.last_result != result:
        print("Unexpected different results for config: %s" % config)
        return False
      self.last_result = result
    return True
def CheckAuditorResults ( self ) : configs = [ [ "--test-only" , "--error-resilient" , ] , [ "--test-only" , ] , [ "--test-only" , "--no-filtering" , ] , ] self . last_result = None for config in configs : result = self . _RunTest ( config , USE_PYTHON_AUDITOR ) if not result : print ( "No output for config: %s" % config ) return False if self . last_result and self . last_result != result : print ( "Unexpected different results for config: %s" % config ) return False self . last_result = result return True
Runs auditor using different configurations, expecting to run error free,
and having equal results in the exported TSV file in all cases.
Runs auditor using different configurations expecting to run error free and having equal results in the exported TSV file in all cases .
"""Runs auditor using different configurations, expecting to run error free,
    and having equal results in the exported TSV file in all cases. The TSV file
    provides a summary of all annotations and their content.

    Returns:
      bool True if all results are as expected.
    """ # Similar to trybot. # Failing on any runtime error. # No heuristic filtering.
bool True if all results are as expected.
bool True if all results are as expected .
self