Python: module simpleparse.tests.test_erroronfail

simpleparse.tests.test_erroronfail | index s:\sp\simpleparse\tests\test_erroronfail.py

Modules
`` |  |
pprint | unittest |  |

Classes
`` |  | unittest.TestCase ErrorOnFailTests
class ErrorOnFailTests(unittest.TestCase)
`` | `Tests of the error-on failure mechanisms`
| Methods defined here: shouldNotRaise(self, definition, parserName, testValue) shouldRaise(self, definition, parserName, testValue) testErrorOnFail1(self) testErrorOnFail10(self) `Test for use of setting message in definition` testErrorOnFail11(self) `Test proper setting of err message text from !"message" syntax` testErrorOnFail2(self) testErrorOnFail3(self) testErrorOnFail4(self) testErrorOnFail5(self) testErrorOnFail6(self) testErrorOnFail7(self) testErrorOnFail8(self) testErrorOnFail9(self) Data and non-method functions defined here: __doc__ = 'Tests of the error-on failure mechanisms' `str(object) -> string Return a nice string representation of the object. If the argument is a string, the return value is the same object.` __module__ = 'simpleparse.tests.test_erroronfail' `str(object) -> string Return a nice string representation of the object. If the argument is a string, the return value is the same object.` Methods inherited from unittest.TestCase: _TestCase__exc_info = __exc_info(self) `Return a version of sys.exc_info() with the traceback frame minimised; usually the top level of the traceback frame is not needed.` __call__(self, result=None) __init__(self, methodName='runTest') `Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.` __repr__(self) __str__(self) assertEqual = failUnlessEqual(self, first, second, msg=None) `Fail if the two objects are unequal as determined by the '!=' operator.` assertEquals = failUnlessEqual(self, first, second, msg=None) `Fail if the two objects are unequal as determined by the '!=' operator.` assertNotEqual = failIfEqual(self, first, second, msg=None) `Fail if the two objects are equal as determined by the '==' operator.` assertNotEquals = failIfEqual(self, first, second, msg=None) `Fail if the two objects are equal as determined by the '==' operator.` assertRaises = failUnlessRaises(self, excClass, callableObj, *args, **kwargs) `Fail unless an exception of class excClass is thrown by callableObj when invoked with arguments args and keyword arguments kwargs. If a different type of exception is thrown, it will not be caught, and the test case will be deemed to have suffered an error, exactly as for an unexpected exception.` assert_ = failUnless(self, expr, msg=None) `Fail the test unless the expression is true.` countTestCases(self) debug(self) `Run the test without collecting errors in a TestResult` defaultTestResult(self) fail(self, msg=None) `Fail immediately, with the given message.` failIf(self, expr, msg=None) `Fail the test if the expression is true.` failIfEqual(self, first, second, msg=None) `Fail if the two objects are equal as determined by the '==' operator.` failUnless(self, expr, msg=None) `Fail the test unless the expression is true.` failUnlessEqual(self, first, second, msg=None) `Fail if the two objects are unequal as determined by the '!=' operator.` failUnlessRaises(self, excClass, callableObj, *args, **kwargs) `Fail unless an exception of class excClass is thrown by callableObj when invoked with arguments args and keyword arguments kwargs. If a different type of exception is thrown, it will not be caught, and the test case will be deemed to have suffered an error, exactly as for an unexpected exception.` id(self) run(self, result=None) setUp(self) `Hook method for setting up the test fixture before exercising it.` shortDescription(self) `Returns a one-line description of the test, or None if no description has been provided. The default implementation of this method returns the first line of the specified test method's docstring.` tearDown(self) `Hook method for deconstructing the test fixture after testing it.` Data and non-method functions inherited from unittest.TestCase: failureException = <class exceptions.AssertionError at 0x007618B0> `Assertion failed.`

Functions
`` |  | getSuite()

Data
`` |  | __file__ = r'S:\sp\simpleparse\tests\test_erroronfail.pyc' __name__ = 'simpleparse.tests.test_erroronfail'