testing/unexpected_passes_common/data_types_unittest.py
def testRetryFailThenPassMatching(self):
    """Tests when there are pass and fail results for retry expectations."""
    foo_fail_result = data_types.Result('foo/test', ['win10'], 'Failure',
                                        'pixel_tests', 'build_id')
    foo_pass_result = data_types.Result('foo/test', ['win10'], 'Pass',
                                        'pixel_tests', 'build_id')
    expectation_map = self.GetEmptyMapForGenericRetryExpectation()
    unmatched_results = expectation_map.AddResultList(
        'builder', [foo_fail_result, foo_pass_result])
    self.assertEqual(unmatched_results, [])

    expected_expectation_map = self.GetFailedMapForExpectation(
        self.GetGenericRetryExpectation())
    self.assertEqual(expectation_map, expected_expectation_map)
Tests when there are pass and fail results for retry expectations.
Tests when there are pass and fail results for retry expectations.
Tests when there are pass and fail results for retry expectations .
def testRetryFailThenPassMatching(self):
    foo_fail_result = data_types.Result('foo/test', ['win10'], 'Failure',
                                        'pixel_tests', 'build_id')
    foo_pass_result = data_types.Result('foo/test', ['win10'], 'Pass',
                                        'pixel_tests', 'build_id')
    expectation_map = self.GetEmptyMapForGenericRetryExpectation()
    unmatched_results = expectation_map.AddResultList(
        'builder', [foo_fail_result, foo_pass_result])
    self.assertEqual(unmatched_results, [])
    expected_expectation_map = self.GetFailedMapForExpectation(
        self.GetGenericRetryExpectation())
    self.assertEqual(expectation_map, expected_expectation_map)
def testRetryFailThenPassMatching ( self ) : foo_fail_result = data_types . Result ( 'foo/test' , [ 'win10' ] , 'Failure' , 'pixel_tests' , 'build_id' ) foo_pass_result = data_types . Result ( 'foo/test' , [ 'win10' ] , 'Pass' , 'pixel_tests' , 'build_id' ) expectation_map = self . GetEmptyMapForGenericRetryExpectation ( ) unmatched_results = expectation_map . AddResultList ( 'builder' , [ foo_fail_result , foo_pass_result ] ) self . assertEqual ( unmatched_results , [ ] ) expected_expectation_map = self . GetFailedMapForExpectation ( self . GetGenericRetryExpectation ( ) ) self . assertEqual ( expectation_map , expected_expectation_map )
Tests when there are pass and fail results for retry expectations.
Tests when there are pass and fail results for retry expectations .
"""Tests when there are pass and fail results for retry expectations."""
self