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

Type ExpectationDatabase

object --+    
         |    
 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.
Method Summary
  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
  __init__(self, **args)
Construct a new 'Extension'.
  __getattr__(self, name)
  GetClassName(self)
Return the name of the extension class.
  GetExplicitArguments(self)
Return the arguments to this extension instance.
  MakeDomDocument(self)
Create a DOM document for 'self'.
  MakeDomElement(self, document, element)
Create a DOM node for 'self'.
  Write(self, file)
Write an XML description of 'self' to a file.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Class Variable Summary
str kind = 'expectation_database'
NoneType test_database = None                                                                  
NoneType testrun_parameters = None                                                                  
    Inherited from Extension
list arguments = []

Method Details

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.

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

returns -- a Result object associated with this test_id.

Class Variable Details

kind

Type:
str
Value:
'expectation_database'                                                 

test_database

Type:
NoneType
Value:
None                                                                  

testrun_parameters

Type:
NoneType
Value:
None                                                                  

Generated by Epydoc 2.1 on Thu Sep 27 15:49:00 2007 http://epydoc.sf.net