Table of Contents

Class: ExceptionTest qm/test/classes/python.py

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.

Base Classes   
BaseExceptionTest
    Test
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,
        )


Table of Contents

This document was automatically generated on Mon Jan 3 09:42:29 2005 by HappyDoc version 2.1