From 03ccc4ac13651b369a83d003ee4ee50225f74e32 Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Fri, 4 Apr 2003 03:14:48 +0000 Subject: Merge from Subversion: Add example of a test that fails. (This used to be commit 1b1bb8ac37464339a7bffc84eb6d96ee1ae7d33d) --- source3/stf/example.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source3/stf') diff --git a/source3/stf/example.py b/source3/stf/example.py index 1f121fd9af..96e34bf3d3 100755 --- a/source3/stf/example.py +++ b/source3/stf/example.py @@ -26,8 +26,13 @@ class OnePlusOne(comfychair.TestCase): def runtest(self): self.assert_(1 + 1 == 2) +class FailTest(comfychair.TestCase): + def runtest(self): + self.assert_(1 + 1 == 3) + tests = [OnePlusOne] +extra_tests = [FailTest] if __name__ == '__main__': - comfychair.main(tests) + comfychair.main(tests, extra_tests=extra_tests) -- cgit