Package qm :: Package test :: Module parameter_database :: Class ParameterDatabase :: Class WrapperSuite
[hide private]
[frames] | no frames]

Class WrapperSuite
source code

         object --+        
                  |        
extension.Extension --+    
                      |    
            suite.Suite --+
                          |
                         WrapperSuite

As tests from the wrapped Database are mapped to suites, suites from the wrapped Database have to be recreated with all tests replaced by ImplicitSuite instances. Additionally, new (explicit) suites may be added.

Nested Classes [hide private]

Inherited from extension.Extension: Type, __metaclass__


Instance Methods [hide private]
  __init__(self, db, suite, suite_ids=None)
Take over suite_ids from the wrapped database but replace test_ids by suite_ids if there are parameters available for them.
  GetSuiteIds(self)
Return the suites contained in this suite.
  GetTestIds(self)
Return the tests contained in this suite.
  IsImplicit(self)
Return true if this is an implicit test suite.
  GetAllTestAndSuiteIds(self)
Return the tests/suites contained in this suite and its subsuites.

Inherited from suite.Suite: GetDatabase, GetId

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

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


Class Variables [hide private]

Inherited from suite.Suite: EXTRA_DATABASE, EXTRA_ID, arguments, kind

Inherited from object: __class__


Method Details [hide private]

__init__(self, db, suite, suite_ids=None)
(Constructor)

source code 
Take over suite_ids from the wrapped database but replace test_ids by suite_ids if there are parameters available for them.
Overrides: suite.Suite.__init__

GetSuiteIds(self)

source code 

Return the suites contained in this suite.

returns -- A sequence of labels corresponding to the suites contained in this suite. Suites that are contained in this suite only because they are contained in a suite which is itself contained in this suite are not returned.
Overrides: suite.Suite.GetSuiteIds
(inherited documentation)

GetTestIds(self)

source code 

Return the tests contained in this suite.

returns -- A sequence of labels corresponding to the tests contained in this suite. Tests that are contained in this suite only because they are contained in a suite which is itself contained in this suite are not returned.
Overrides: suite.Suite.GetTestIds
(inherited documentation)

IsImplicit(self)

source code 

Return true if this is an implicit test suite.

Implicit test suites cannot be edited.
Overrides: suite.Suite.IsImplicit
(inherited documentation)

GetAllTestAndSuiteIds(self)

source code 

Return the tests/suites contained in this suite and its subsuites.

returns -- A pair '(test_ids, suite_ids)'. The 'test_ids' and 'suite_ids' elements are both sequences of labels. The values returned include all tests and suites that are contained in this suite and its subsuites, recursively.
Overrides: suite.Suite.GetAllTestAndSuiteIds
(inherited documentation)