Package qm :: Package test :: Module directory_suite :: Class DirectorySuite
[hide private]
[frames] | no frames]

Class DirectorySuite
source code

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

A 'DirectorySuite' is a suite corresponding to a directory.

A 'DirectorySuite' is an implicit suite that contains all tests within a given directory. The directory is given by a label, not a file system directory, so a 'DirectorySuite' can work with any database.

Nested Classes [hide private]

Inherited from extension.Extension: Type, __metaclass__


Instance Methods [hide private]
  __init__(self, database, directory)
Construct a new 'DirectorySuite'.
  GetTestIds(self)
Return the tests contained in this suite.
  GetSuiteIds(self)
Return the suites contained in this suite.
  IsImplicit(self)
Return true if this is an implicit test suite.

Inherited from suite.Suite: GetAllTestAndSuiteIds, 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, database, directory)
(Constructor)

source code 

Construct a new 'DirectorySuite'.

'database' -- The 'Database' instance containing this suite.

'directory' -- A label giving the directory corresponding to this suite.
Overrides: suite.Suite.__init__

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

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

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)