testing/unexpected_passes_common/data_types_unittest.py
def testEmptyMergeMap(self):
    """Tests that a merge with an empty merge map is a no-op."""
    base_map = data_types.TestExpectationMap({
        'foo':
        data_types.ExpectationBuilderMap({
            data_types.Expectation('foo', ['win'], 'Failure'):
            data_types.BuilderStepMap({
                'builder':
                data_types.StepBuildStatsMap({
                    'step': data_types.BuildStats(),
                }),
            }),
        }),
    })
    merge_map = data_types.TestExpectationMap()
    original_base_map = copy.deepcopy(base_map)
    base_map.Merge(merge_map)
    self.assertEqual(base_map, original_base_map)
    self.assertEqual(merge_map, {})
Tests that a merge with an empty merge map is a no-op.
Tests that a merge with an empty merge map is a no-op.
Tests that a merge with an empty merge map is a no - op .
def testEmptyMergeMap(self):
    base_map = data_types.TestExpectationMap({
        'foo':
        data_types.ExpectationBuilderMap({
            data_types.Expectation('foo', ['win'], 'Failure'):
            data_types.BuilderStepMap({
                'builder':
                data_types.StepBuildStatsMap({
                    'step': data_types.BuildStats(),
                }),
            }),
        }),
    })
    merge_map = data_types.TestExpectationMap()
    original_base_map = copy.deepcopy(base_map)
    base_map.Merge(merge_map)
    self.assertEqual(base_map, original_base_map)
    self.assertEqual(merge_map, {})
def testEmptyMergeMap ( self ) : base_map = data_types . TestExpectationMap ( { 'foo' : data_types . ExpectationBuilderMap ( { data_types . Expectation ( 'foo' , [ 'win' ] , 'Failure' ) : data_types . BuilderStepMap ( { 'builder' : data_types . StepBuildStatsMap ( { 'step' : data_types . BuildStats ( ) , } ) , } ) , } ) , } ) merge_map = data_types . TestExpectationMap ( ) original_base_map = copy . deepcopy ( base_map ) base_map . Merge ( merge_map ) self . assertEqual ( base_map , original_base_map ) self . assertEqual ( merge_map , { } )
Tests that a merge with an empty merge map is a no-op.
Tests that a merge with an empty merge map is a no - op .
"""Tests that a merge with an empty merge map is a no-op."""
self