third_party/blink/tools/blinkpy/web_tests/stale_expectation_removal/data_types_unittest.py
def testAlwaysNeededExpectationNoSlowExpectation(self):
        """Tests that no special logic is used for non-Slow expectations."""
        expectation = data_types.WebTestExpectation('foo', ['debug'],
                                                    'Failure')
        stats = data_types.WebTestBuildStats()
        stats.AddFailedBuild('build_id')
        self.assertTrue(stats.AlwaysNeededExpectation(expectation))
        stats.AddPassedBuild()
        self.assertFalse(stats.AlwaysNeededExpectation(expectation))
        # Slowness should not be considered in this case even if all builds are
        # slow.
        stats.AddSlowBuild('build_id')
        stats.AddSlowBuild('build_id2')
        self.assertFalse(stats.AlwaysNeededExpectation(expectation))
Tests that no special logic is used for non-Slow expectations.
Tests that no special logic is used for non-Slow expectations.
Tests that no special logic is used for non - Slow expectations .
def testAlwaysNeededExpectationNoSlowExpectation(self):
        expectation = data_types.WebTestExpectation('foo', ['debug'],
                                                    'Failure')
        stats = data_types.WebTestBuildStats()
        stats.AddFailedBuild('build_id')
        self.assertTrue(stats.AlwaysNeededExpectation(expectation))
        stats.AddPassedBuild()
        self.assertFalse(stats.AlwaysNeededExpectation(expectation))
        stats.AddSlowBuild('build_id')
        stats.AddSlowBuild('build_id2')
        self.assertFalse(stats.AlwaysNeededExpectation(expectation))
def testAlwaysNeededExpectationNoSlowExpectation ( self ) : expectation = data_types . WebTestExpectation ( 'foo' , [ 'debug' ] , 'Failure' ) stats = data_types . WebTestBuildStats ( ) stats . AddFailedBuild ( 'build_id' ) self . assertTrue ( stats . AlwaysNeededExpectation ( expectation ) ) stats . AddPassedBuild ( ) self . assertFalse ( stats . AlwaysNeededExpectation ( expectation ) ) stats . AddSlowBuild ( 'build_id' ) stats . AddSlowBuild ( 'build_id2' ) self . assertFalse ( stats . AlwaysNeededExpectation ( expectation ) )
Tests that no special logic is used for non-Slow expectations.
Tests that no special logic is used for non - Slow expectations .
"""Tests that no special logic is used for non-Slow expectations.""" # Slowness should not be considered in this case even if all builds are # slow.
self