content/test/gpu/flake_suppressor/data_types_unittest.py
def testAppliesToResultApplies(self):
    """Tests that AppliesToResult properly returns True on expected Results."""
    # Exact match.
    e = data_types.Expectation('test', ['win', 'nvidia'], ['Failure'])
    r = data_types.Result('suite', 'test', ('win', 'nvidia'), 'id')
    self.assertTrue(e.AppliesToResult(r))
    # Tag subset
    r = data_types.Result('suite', 'test', ('win', 'nvidia', 'release'), 'id')
    self.assertTrue(e.AppliesToResult(r))
    # Glob match
    e = data_types.Expectation('t*', ['win', 'nvidia'], ['Failure'])
    self.assertTrue(e.AppliesToResult(r))
Tests that AppliesToResult properly returns True on expected Results.
Tests that AppliesToResult properly returns True on expected Results.
Tests that AppliesToResult properly returns True on expected Results .
def testAppliesToResultApplies(self):
    e = data_types.Expectation('test', ['win', 'nvidia'], ['Failure'])
    r = data_types.Result('suite', 'test', ('win', 'nvidia'), 'id')
    self.assertTrue(e.AppliesToResult(r))
    r = data_types.Result('suite', 'test', ('win', 'nvidia', 'release'), 'id')
    self.assertTrue(e.AppliesToResult(r))
    e = data_types.Expectation('t*', ['win', 'nvidia'], ['Failure'])
    self.assertTrue(e.AppliesToResult(r))
def testAppliesToResultApplies ( self ) : e = data_types . Expectation ( 'test' , [ 'win' , 'nvidia' ] , [ 'Failure' ] ) r = data_types . Result ( 'suite' , 'test' , ( 'win' , 'nvidia' ) , 'id' ) self . assertTrue ( e . AppliesToResult ( r ) ) r = data_types . Result ( 'suite' , 'test' , ( 'win' , 'nvidia' , 'release' ) , 'id' ) self . assertTrue ( e . AppliesToResult ( r ) ) e = data_types . Expectation ( 't*' , [ 'win' , 'nvidia' ] , [ 'Failure' ] ) self . assertTrue ( e . AppliesToResult ( r ) )
Tests that AppliesToResult properly returns True on expected Results.
Tests that AppliesToResult properly returns True on expected Results .
"""Tests that AppliesToResult properly returns True on expected Results.""" # Exact match. # Tag subset # Glob match
self