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.
Methods
|
|
CheckArgument
MakeResult
|
|
CheckArgument
|
CheckArgument (
self,
exc_info,
result,
)
Check that the exception argument matches expectations.
-
result
- The result object for this test.
|
|
MakeResult
|
MakeResult (
self,
exc_info,
result,
)
|
|