tesseract v5.3.3.20231005
gmock_output_test.GMockOutputTest Class Reference
Inheritance diagram for gmock_output_test.GMockOutputTest:

Public Member Functions

def testOutput (self)
 

Detailed Description

Definition at line 155 of file gmock_output_test.py.

Member Function Documentation

◆ testOutput()

def gmock_output_test.GMockOutputTest.testOutput (   self)

Definition at line 157 of file gmock_output_test.py.

157 def testOutput(self):
158 (output, leaky_tests) = GetNormalizedCommandOutputAndLeakyTests(COMMAND)
159 golden_file = open(GOLDEN_PATH, 'rb')
160 golden = golden_file.read().decode('utf-8')
161 golden_file.close()
162
163 # The normalized output should match the golden file.
164 self.assertEquals(golden, output)
165
166 # The raw output should contain 2 leaked mock object errors for
167 # test GMockOutputTest.CatchesLeakedMocks.
168 self.assertEquals(['GMockOutputTest.CatchesLeakedMocks',
169 'GMockOutputTest.CatchesLeakedMocks'],
170 leaky_tests)
171
172
def GetNormalizedCommandOutputAndLeakyTests(cmd)

The documentation for this class was generated from the following file: