990
990
# and not count as an error
991
991
self.assertEqual(0, result.error_count)
993
def test_strict_with_unsupported_feature(self):
994
result = bzrlib.tests.TextTestResult(self._log_file, descriptions=0,
996
test = self.get_passing_test()
997
feature = "Unsupported Feature"
998
result.addNotSupported(test, feature)
999
self.assertFalse(result.wasStrictlySuccessful())
1001
def test_strict_with_known_failure(self):
1002
result = bzrlib.tests.TextTestResult(self._log_file, descriptions=0,
1004
test = self.get_passing_test()
1005
err = (KnownFailure, KnownFailure('foo'), None)
1006
result.addKnownFailure(test, err)
1007
self.assertFalse(result.wasStrictlySuccessful())
1009
def test_strict_with_success(self):
1010
result = bzrlib.tests.TextTestResult(self._log_file, descriptions=0,
1012
test = self.get_passing_test()
1013
result.addSuccess(test)
1014
self.assertTrue(result.wasStrictlySuccessful())
994
1017
class TestRunner(TestCase):