Home | Trees | Indices | Help |
---|
|
object --+ | extension.Extension --+ | runnable.Runnable --+ | test.Test --+ | BaseExceptionTest --+ | ExceptionTest
Check that the specified Python code raises an exception.
An 'ExceptionTest' checks that the specified Python code raises a particular exception. The test passes if the exception is an instance of the expected class and (optionally) if its value matches the expected value. If the code fails to raise an exception, the test fails.
|
|||
Inherited from Inherited from Inherited from |
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
arguments = [qm.fields.TextField(name= "exception_class", titl A list of the arguments to the extension class. |
|||
Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
Check the exception in 'exc_info' and construct the result. 'result' -- The result object for this test.
|
Check that the exception argument matches expectations. 'result' -- The result object for this test.
|
|
argumentsA list of the arguments to the extension class. Each element of this list should be an instance of 'Field'. The 'Field' instance describes the argument. Derived classes may redefine this class variable. However, derived classes should not explicitly include the arguments from base classes; QMTest will automatically combine all the arguments found throughout the class hierarchy.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Dec 23 12:30:41 2011 | http://epydoc.sourceforge.net |