testing/unexpected_passes_common/data_types_unittest.py
def testResultNoMatch(self):
    """Tests that a result is not added if no match is found."""
    r = data_types.Result('some/test/case', ['win', 'win10'], 'Failure',
                          'pixel_tests', 'build_id')
    e = data_types.Expectation('some/test/*', ['win10', 'foo'], 'Failure')
    expectation_map = data_types.TestExpectationMap({
        'expectation_file':
        data_types.ExpectationBuilderMap({
            e: data_types.BuilderStepMap(),
        })
    })
    grouped_results = {
        'some/test/case': [r],
    }
    matched_results = expectation_map._AddGroupedResults(
        grouped_results, 'builder', None)
    self.assertEqual(matched_results, set())
    expected_expectation_map = {'expectation_file': {e: {}}}
    self.assertEqual(expectation_map, expected_expectation_map)
Tests that a result is not added if no match is found.
Tests that a result is not added if no match is found.
Tests that a result is not added if no match is found .
def testResultNoMatch(self):
    r = data_types.Result('some/test/case', ['win', 'win10'], 'Failure',
                          'pixel_tests', 'build_id')
    e = data_types.Expectation('some/test/*', ['win10', 'foo'], 'Failure')
    expectation_map = data_types.TestExpectationMap({
        'expectation_file':
        data_types.ExpectationBuilderMap({
            e: data_types.BuilderStepMap(),
        })
    })
    grouped_results = {
        'some/test/case': [r],
    }
    matched_results = expectation_map._AddGroupedResults(
        grouped_results, 'builder', None)
    self.assertEqual(matched_results, set())
    expected_expectation_map = {'expectation_file': {e: {}}}
    self.assertEqual(expectation_map, expected_expectation_map)
def testResultNoMatch ( self ) : r = data_types . Result ( 'some/test/case' , [ 'win' , 'win10' ] , 'Failure' , 'pixel_tests' , 'build_id' ) e = data_types . Expectation ( 'some/test/*' , [ 'win10' , 'foo' ] , 'Failure' ) expectation_map = data_types . TestExpectationMap ( { 'expectation_file' : data_types . ExpectationBuilderMap ( { e : data_types . BuilderStepMap ( ) , } ) } ) grouped_results = { 'some/test/case' : [ r ] , } matched_results = expectation_map . _AddGroupedResults ( grouped_results , 'builder' , None ) self . assertEqual ( matched_results , set ( ) ) expected_expectation_map = { 'expectation_file' : { e : { } } } self . assertEqual ( expectation_map , expected_expectation_map )
Tests that a result is not added if no match is found.
Tests that a result is not added if no match is found .
"""Tests that a result is not added if no match is found."""
self