import helper
import runner as runner_mod
+class TestingException(Exception):
+ '''Common ancestor for manual Testing Exceptions.'''
+class TestFailException(TestingException):
+ '''Signals that a test has failed.'''
+class TestSkipException(TestingException):
+ '''Signals that a test has been skipped.'''
+
+def fail(message):
+ '''Cause the current test to fail with the given message.'''
+ raise TestFailException(message)
+
+def skip(message):
+ '''Cause the current test to skip with the given message.'''
+ raise TestSkipException(message)
+
class TestCase(object):
'''
Base class for all tests.
if function is not None:
return testfunctiondecorator(function)
else:
- return testfunctiondecorator
\ No newline at end of file
+ return testfunctiondecorator