tools/json_schema_compiler/feature_compiler_test.py
def _hasError(self, f, error):
    """Asserts that |error| is present somewhere in the given feature's
    errors."""
    errors = f.GetErrors()
    self.assertTrue(errors)
    self.assertNotEqual(-1, str(errors).find(error), str(errors))
Asserts that |error| is present somewhere in the given feature's
    errors.
Asserts that |error| is present somewhere in the given feature's
errors.
Asserts that |error| is present somewhere in the given feature ' s errors .
def _hasError(self, f, error):
    errors = f.GetErrors()
    self.assertTrue(errors)
    self.assertNotEqual(-1, str(errors).find(error), str(errors))
def _hasError ( self , f , error ) : errors = f . GetErrors ( ) self . assertTrue ( errors ) self . assertNotEqual ( - 1 , str ( errors ) . find ( error ) , str ( errors ) )
Asserts that |error| is present somewhere in the given feature's
errors.
Asserts that |error| is present somewhere in the given feature ' s errors .
"""Asserts that |error| is present somewhere in the given feature's
    errors."""
self
f
error