def runTest(self):
    """Runs the test."""
    try:
      filename = self._filename
      stream = open(filename)
    except __HOLE__ as ex:
      raise IOError('Could not find testdata resource for %s: %s' %
                    (self._filename, ex))

    expected = self._GetExpectedMessages(stream)
    got = self._ProcessFileAndGetMessages(filename)
    self.assertEqual(expected, got)
dataset/ETHPy150Open google/closure-linter/closure_linter/common/filetestcase.py/AnnotatedFileTestCase.runTest