testing/unexpected_passes_common/data_types_unittest.py
def testRetryOnlyFailMatching(self):
    """Tests when the only tests are retry expectations that fail and match."""
    foo_result = data_types.Result('foo/test', ['win10'], 'Failure',
                                   'pixel_tests', 'build_id')
    expectation_map = self.GetEmptyMapForGenericRetryExpectation()
    unmatched_results = expectation_map.AddResultList('builder', [foo_result])
    self.assertEqual(unmatched_results, [])

    expected_expectation_map = self.GetFailedMapForExpectation(
        self.GetGenericRetryExpectation())
    self.assertEqual(expectation_map, expected_expectation_map)
Tests when the only tests are retry expectations that fail and match.
Tests when the only tests are retry expectations that fail and match.
Tests when the only tests are retry expectations that fail and match .
def testRetryOnlyFailMatching(self):
    foo_result = data_types.Result('foo/test', ['win10'], 'Failure',
                                   'pixel_tests', 'build_id')
    expectation_map = self.GetEmptyMapForGenericRetryExpectation()
    unmatched_results = expectation_map.AddResultList('builder', [foo_result])
    self.assertEqual(unmatched_results, [])
    expected_expectation_map = self.GetFailedMapForExpectation(
        self.GetGenericRetryExpectation())
    self.assertEqual(expectation_map, expected_expectation_map)
def testRetryOnlyFailMatching ( self ) : foo_result = data_types . Result ( 'foo/test' , [ 'win10' ] , 'Failure' , 'pixel_tests' , 'build_id' ) expectation_map = self . GetEmptyMapForGenericRetryExpectation ( ) unmatched_results = expectation_map . AddResultList ( 'builder' , [ foo_result ] ) self . assertEqual ( unmatched_results , [ ] ) expected_expectation_map = self . GetFailedMapForExpectation ( self . GetGenericRetryExpectation ( ) ) self . assertEqual ( expectation_map , expected_expectation_map )
Tests when the only tests are retry expectations that fail and match.
Tests when the only tests are retry expectations that fail and match .
"""Tests when the only tests are retry expectations that fail and match."""
self