Helper class that adds assert methods.
Definition at line 31 of file gmock_class_test.py.
◆ assertEqualIgnoreLeadingWhitespace()
def cpp.gmock_class_test.TestCase.assertEqualIgnoreLeadingWhitespace |
( |
|
self, |
|
|
|
expected_lines, |
|
|
|
lines |
|
) |
| |
Specialized assert that ignores the indent level.
Definition at line 39 of file gmock_class_test.py.
39 def assertEqualIgnoreLeadingWhitespace(self, expected_lines, lines):
40 """Specialized assert that ignores the indent level."""
41 self.assertEqual(expected_lines, self.StripLeadingWhitespace(lines))
42
43
◆ StripLeadingWhitespace()
def cpp.gmock_class_test.TestCase.StripLeadingWhitespace |
( |
|
lines | ) |
|
|
static |
Strip leading whitespace in each line in 'lines'.
Definition at line 35 of file gmock_class_test.py.
35 def StripLeadingWhitespace(lines):
36 """Strip leading whitespace in each line in 'lines'."""
37 return '\n'.join([s.lstrip() for s in lines.split('\n')])
38
The documentation for this class was generated from the following file:
- /media/home/debian/src/github/tesseract-ocr/tesseract/unittest/third_party/googletest/googlemock/scripts/generator/cpp/gmock_class_test.py