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

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