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

Class ExpectationDatabase
source code

         object --+    
                  |    
extension.Extension --+
                      |
                     ExpectationDatabase
Known Subclasses:
classes.xml_expectation_database.XMLExpectationDatabase, classes.previous_testrun.PreviousTestRun

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]
  GetExpectedOutcomes(self)
Return a dict object mapping test ids to expected outcomes.
  Lookup(self, test_id)
Look up the expected outcome for the given test.

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

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


Class Variables [hide private]
_argument_dictionary A map from argument names to 'Field' instances.
_argument_list A list of all the 'Field's in this class.
kind A string giving kind of extension is implemented by the class.
test_database  
testrun_parameters  

Inherited from extension.Extension: arguments

Inherited from object: __class__


Method Details [hide private]

GetExpectedOutcomes(self)

source code 
Return a dict object mapping test ids to expected outcomes.

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>]                 
      

kind

A string giving kind of extension is implemented by the class.

This field is used in an application-specific way; for example, QMTest has 'test' and 'target' extension classes.
Value:
'expectation_database'                                                 
      

test_database

Value:
{}                                                                     
      

testrun_parameters

Value:
{}