third_party/blink/tools/blinkpy/style/checkers/common_unittest.py
def assert_tab(self, input_lines, error_lines):
        """Assert when the given lines contain tabs."""
        self._error_lines = []

        def style_error_handler(line_number, category, confidence, message):
            self.assertEqual(category, 'whitespace/tab')
            self.assertEqual(confidence, 5)
            self.assertEqual(message, 'Line contains tab character.')
            self._error_lines.append(line_number)

        checker = TabChecker('', style_error_handler)
        checker.check(input_lines)
        self.assertEqual(self._error_lines, error_lines)
Assert when the given lines contain tabs.
Assert when the given lines contain tabs.
Assert when the given lines contain tabs .
def assert_tab(self, input_lines, error_lines):
        self._error_lines = []
        def style_error_handler(line_number, category, confidence, message):
            self.assertEqual(category, 'whitespace/tab')
            self.assertEqual(confidence, 5)
            self.assertEqual(message, 'Line contains tab character.')
            self._error_lines.append(line_number)
        checker = TabChecker('', style_error_handler)
        checker.check(input_lines)
        self.assertEqual(self._error_lines, error_lines)
def assert_tab ( self , input_lines , error_lines ) : self . _error_lines = [ ] def style_error_handler ( line_number , category , confidence , message ) : self . assertEqual ( category , 'whitespace/tab' ) self . assertEqual ( confidence , 5 ) self . assertEqual ( message , 'Line contains tab character.' ) self . _error_lines . append ( line_number ) checker = TabChecker ( '' , style_error_handler ) checker . check ( input_lines ) self . assertEqual ( self . _error_lines , error_lines )
Assert when the given lines contain tabs.
Assert when the given lines contain tabs .
"""Assert when the given lines contain tabs."""
self
input_lines
error_lines