testing/unexpected_passes_common/data_types_unittest.py
def testEmptyBaseMap(self):
    """Tests that a merge with an empty base map copies the merge map."""
    base_map = data_types.TestExpectationMap()
    merge_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(),
                }),
            }),
        }),
    })
    original_merge_map = copy.deepcopy(merge_map)
    base_map.Merge(merge_map)
    self.assertEqual(base_map, merge_map)
    self.assertEqual(merge_map, original_merge_map)
Tests that a merge with an empty base map copies the merge map.
Tests that a merge with an empty base map copies the merge map.
Tests that a merge with an empty base map copies the merge map .
def testEmptyBaseMap(self):
    base_map = data_types.TestExpectationMap()
    merge_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(),
                }),
            }),
        }),
    })
    original_merge_map = copy.deepcopy(merge_map)
    base_map.Merge(merge_map)
    self.assertEqual(base_map, merge_map)
    self.assertEqual(merge_map, original_merge_map)
def testEmptyBaseMap ( self ) : base_map = data_types . TestExpectationMap ( ) merge_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 ( ) , } ) , } ) , } ) , } ) original_merge_map = copy . deepcopy ( merge_map ) base_map . Merge ( merge_map ) self . assertEqual ( base_map , merge_map ) self . assertEqual ( merge_map , original_merge_map )
Tests that a merge with an empty base map copies the merge map.
Tests that a merge with an empty base map copies the merge map .
"""Tests that a merge with an empty base map copies the merge map."""
self