testing/unexpected_passes_common/data_types_unittest.py
def testUnusedAndEmpty(self):
    """Tests filtering if there is an expectation that causes an empty test."""
    expectation_map = data_types.TestExpectationMap({
        'expectation_file':
        data_types.ExpectationBuilderMap({
            data_types.Expectation('foo/test', ['win'], ['Failure']):
            data_types.BuilderStepMap(),
        }),
    })
    expected_unused = {
        'expectation_file':
        [data_types.Expectation('foo/test', ['win'], ['Failure'])]
    }
    unused_expectations = expectation_map.FilterOutUnusedExpectations()
    self.assertEqual(unused_expectations, expected_unused)
    self.assertEqual(expectation_map, {})
Tests filtering if there is an expectation that causes an empty test.
Tests filtering if there is an expectation that causes an empty test.
Tests filtering if there is an expectation that causes an empty test .
def testUnusedAndEmpty(self):
    expectation_map = data_types.TestExpectationMap({
        'expectation_file':
        data_types.ExpectationBuilderMap({
            data_types.Expectation('foo/test', ['win'], ['Failure']):
            data_types.BuilderStepMap(),
        }),
    })
    expected_unused = {
        'expectation_file':
        [data_types.Expectation('foo/test', ['win'], ['Failure'])]
    }
    unused_expectations = expectation_map.FilterOutUnusedExpectations()
    self.assertEqual(unused_expectations, expected_unused)
    self.assertEqual(expectation_map, {})
def testUnusedAndEmpty ( self ) : expectation_map = data_types . TestExpectationMap ( { 'expectation_file' : data_types . ExpectationBuilderMap ( { data_types . Expectation ( 'foo/test' , [ 'win' ] , [ 'Failure' ] ) : data_types . BuilderStepMap ( ) , } ) , } ) expected_unused = { 'expectation_file' : [ data_types . Expectation ( 'foo/test' , [ 'win' ] , [ 'Failure' ] ) ] } unused_expectations = expectation_map . FilterOutUnusedExpectations ( ) self . assertEqual ( unused_expectations , expected_unused ) self . assertEqual ( expectation_map , { } )
Tests filtering if there is an expectation that causes an empty test.
Tests filtering if there is an expectation that causes an empty test .
"""Tests filtering if there is an expectation that causes an empty test."""
self