testing/unexpected_passes_common/data_types_unittest.py
def testNoUnused(self):
    """Tests that filtering is a no-op if there are no unused expectations."""
    expectation_map = data_types.TestExpectationMap({
        'expectation_file':
        data_types.ExpectationBuilderMap({
            data_types.Expectation('foo/test', ['win'], ['Failure']):
            data_types.BuilderStepMap({
                'SomeBuilder':
                data_types.StepBuildStatsMap(),
            }),
        })
    })
    expected_expectation_map = copy.deepcopy(expectation_map)
    unused_expectations = expectation_map.FilterOutUnusedExpectations()
    self.assertEqual(len(unused_expectations), 0)
    self.assertEqual(expectation_map, expected_expectation_map)
Tests that filtering is a no-op if there are no unused expectations.
Tests that filtering is a no-op if there are no unused expectations.
Tests that filtering is a no - op if there are no unused expectations .
def testNoUnused(self):
    expectation_map = data_types.TestExpectationMap({
        'expectation_file':
        data_types.ExpectationBuilderMap({
            data_types.Expectation('foo/test', ['win'], ['Failure']):
            data_types.BuilderStepMap({
                'SomeBuilder':
                data_types.StepBuildStatsMap(),
            }),
        })
    })
    expected_expectation_map = copy.deepcopy(expectation_map)
    unused_expectations = expectation_map.FilterOutUnusedExpectations()
    self.assertEqual(len(unused_expectations), 0)
    self.assertEqual(expectation_map, expected_expectation_map)
def testNoUnused ( self ) : expectation_map = data_types . TestExpectationMap ( { 'expectation_file' : data_types . ExpectationBuilderMap ( { data_types . Expectation ( 'foo/test' , [ 'win' ] , [ 'Failure' ] ) : data_types . BuilderStepMap ( { 'SomeBuilder' : data_types . StepBuildStatsMap ( ) , } ) , } ) } ) expected_expectation_map = copy . deepcopy ( expectation_map ) unused_expectations = expectation_map . FilterOutUnusedExpectations ( ) self . assertEqual ( len ( unused_expectations ) , 0 ) self . assertEqual ( expectation_map , expected_expectation_map )
Tests that filtering is a no-op if there are no unused expectations.
Tests that filtering is a no - op if there are no unused expectations .
"""Tests that filtering is a no-op if there are no unused expectations."""
self