proxygen
gmock_output_test.GMockOutputTest Class Reference
Inheritance diagram for gmock_output_test.GMockOutputTest:

Public Member Functions

def testOutput (self)
 
def testOutput (self)
 
def testOutput (self)
 

Detailed Description

Definition at line 156 of file gmock_output_test.py.

Member Function Documentation

def gmock_output_test.GMockOutputTest.testOutput (   self)

Definition at line 157 of file gmock_output_test.py.

References gmock_output_test.GetNormalizedCommandOutputAndLeakyTests().

Referenced by gmock_output_test.GMockOutputTest.testOutput().

157  def testOutput(self):
158  (output, leaky_tests) = GetNormalizedCommandOutputAndLeakyTests(COMMAND)
159  golden_file = open(GOLDEN_PATH, 'rb')
160  golden = golden_file.read()
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)
def gmock_output_test.GMockOutputTest.testOutput (   self)

Definition at line 157 of file gmock_output_test.py.

References gmock_output_test.GetNormalizedCommandOutputAndLeakyTests(), gmock_test_utils.Main(), and gmock_output_test.GMockOutputTest.testOutput().

157  def testOutput(self):
158  (output, leaky_tests) = GetNormalizedCommandOutputAndLeakyTests(COMMAND)
159  golden_file = open(GOLDEN_PATH, 'rb')
160  golden = golden_file.read()
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)
def gmock_output_test.GMockOutputTest.testOutput (   self)

Definition at line 157 of file gmock_output_test.py.

References gmock_output_test.GetNormalizedCommandOutputAndLeakyTests(), gmock_test_utils.Main(), and gmock_output_test.GMockOutputTest.testOutput().

157  def testOutput(self):
158  (output, leaky_tests) = GetNormalizedCommandOutputAndLeakyTests(COMMAND)
159  golden_file = open(GOLDEN_PATH, 'rb')
160  golden = golden_file.read()
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: