Package qm :: Package test :: Package classes :: Module python :: Class StringExceptionTest
[hide private]
[frames] | no frames]

Class StringExceptionTest

source code

         object --+                
                  |                
extension.Extension --+            
                      |            
      runnable.Runnable --+        
                          |        
                  test.Test --+    
                              |    
              BaseExceptionTest --+
                                  |
                                 StringExceptionTest

Check that the specified Python code raises a string exception.

A 'StringExceptionTest' checks that the specified code throws an exception. The exception must be a string and must have the expected value.

Nested Classes [hide private]

Inherited from test.Test: OutcomeField, TestField

Inherited from runnable.Runnable: ResourceField

Inherited from extension.Extension: Type, __metaclass__

Instance Methods [hide private]
 
MakeResult(self, exc_info, result)
Check the exception in 'exc_info' and construct the result.
source code

Inherited from BaseExceptionTest: CheckArgument, Run

Inherited from test.Test: GetTargetGroup

Inherited from runnable.Runnable: GetAttachments, GetDatabase, GetId, __init__

Inherited from extension.Extension: GetClassName, GetExplicitArguments, MakeDomDocument, MakeDomElement, Write, __getattr__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  arguments = [qm.fields.TextField(name= "exception_text", title...
A list of the arguments to the extension class.

Inherited from test.Test: PREREQUISITES_FIELD_ID, kind

Inherited from runnable.Runnable: EXTRA_DATABASE, EXTRA_ID, RESOURCE_FIELD_ID, resources

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

MakeResult(self, exc_info, result)

source code 

Check the exception in 'exc_info' and construct the result.

'result' -- The result object for this test.

Overrides: BaseExceptionTest.MakeResult
(inherited documentation)

Class Variable Details [hide private]

arguments

A 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.

Value:
[qm.fields.TextField(name= "exception_text", title= "Exception Text", \
description= "The expected exception string.", default_value= "excepti\
on")]