testing/unexpected_passes_common/data_types_unittest.py
def testFailurePassMatching(self):
    """Tests when there are pass results for failure expectations."""
    foo_result = data_types.Result('foo/test', ['win10'], 'Pass', 'pixel_tests',
                                   'build_id')
    expectation_map = self.GetEmptyMapForGenericFailureExpectation()
    unmatched_results = expectation_map.AddResultList('builder', [foo_result])
    self.assertEqual(unmatched_results, [])

    expected_expectation_map = self.GetPassedMapForExpectation(
        self.GetGenericFailureExpectation())
    self.assertEqual(expectation_map, expected_expectation_map)
Tests when there are pass results for failure expectations.
Tests when there are pass results for failure expectations.
Tests when there are pass results for failure expectations .
def testFailurePassMatching(self):
    foo_result = data_types.Result('foo/test', ['win10'], 'Pass', 'pixel_tests',
                                   'build_id')
    expectation_map = self.GetEmptyMapForGenericFailureExpectation()
    unmatched_results = expectation_map.AddResultList('builder', [foo_result])
    self.assertEqual(unmatched_results, [])
    expected_expectation_map = self.GetPassedMapForExpectation(
        self.GetGenericFailureExpectation())
    self.assertEqual(expectation_map, expected_expectation_map)
def testFailurePassMatching ( self ) : foo_result = data_types . Result ( 'foo/test' , [ 'win10' ] , 'Pass' , 'pixel_tests' , 'build_id' ) expectation_map = self . GetEmptyMapForGenericFailureExpectation ( ) unmatched_results = expectation_map . AddResultList ( 'builder' , [ foo_result ] ) self . assertEqual ( unmatched_results , [ ] ) expected_expectation_map = self . GetPassedMapForExpectation ( self . GetGenericFailureExpectation ( ) ) self . assertEqual ( expectation_map , expected_expectation_map )
Tests when there are pass results for failure expectations.
Tests when there are pass results for failure expectations .
"""Tests when there are pass results for failure expectations."""
self