Package qm :: Package test :: Module expectation_database :: Class ExpectationDatabase
[hide private]
[frames] | no frames]

Class ExpectationDatabase

source code

         object --+    
                  |    
extension.Extension --+
                      |
                     ExpectationDatabase

An 'ExpectationDatabase' stores result expectations.

An 'ExpectationDatabase' provides a mechanism to store and make accessible expectations for test outcomes. By default, all tests are expected to pass.

Nested Classes [hide private]

Inherited from extension.Extension: Type, __metaclass__

Instance Methods [hide private]
 
Lookup(self, test_id)
Look up the expected outcome for the given test.
source code
 
GetExpectedOutcomes(self)
Return a dict object mapping test ids to expected outcomes.
source code

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

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

Class Variables [hide private]
  kind = 'expectation_database'
A string giving kind of extension is implemented by the class.
  test_database = None
hash(x)
  testrun_parameters = None
hash(x)
  _argument_dictionary = {'test_database': <<class 'qm.fields.Py...
A map from argument names to 'Field' instances.
  _argument_list = [<<class 'qm.fields.PythonField'> test_databa...
A list of all the 'Field's in this class.

Inherited from extension.Extension: arguments

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

Lookup(self, test_id)

source code 

Look up the expected outcome for the given test.

'test_id' -- test-id for which the outcome is queried.

returns -- a Result object associated with this test_id.


Class Variable Details [hide private]

_argument_dictionary

A map from argument names to 'Field' instances.

A map from the names of arguments for this class to the corresponding 'Field'.

Value:
{'test_database': <<class 'qm.fields.PythonField'> test_database>,
 'testrun_parameters': <<class 'qm.fields.PythonField'> testrun_parame\
ters>}

_argument_list

A list of all the 'Field's in this class.

This list combines the complete list of 'arguments'. 'Field's appear in the order reached by a pre-order breadth-first traversal of the hierarchy, starting from the most derived class.

Value:
[<<class 'qm.fields.PythonField'> test_database>,
 <<class 'qm.fields.PythonField'> testrun_parameters>]