Lines Matching refs:failures
58 def _assert_expected(self, expected_failures, failures, expected):
59 self.assertEqual(expected_failures.failures_were_expected(MockResults(failures)), expected)
62 failures = ExpectedFailures()
63 failures.grow_expected_failures(MockResults(['foo.html']))
64 self._assert_expected(failures, ['foo.html'], True)
65 self._assert_expected(failures, ['bar.html'], False)
66 failures.shrink_expected_failures(MockResults(['baz.html']), False)
67 self._assert_expected(failures, ['foo.html'], False)
68 self._assert_expected(failures, ['baz.html'], False)
70 failures.grow_expected_failures(MockResults(['baz.html']))
71 self._assert_expected(failures, ['baz.html'], True)
72 failures.shrink_expected_failures(MockResults(), True)
73 self._assert_expected(failures, ['baz.html'], False)