Home | Trees | Index | Help |
---|
|
object --+ | extension.Extension --+ | database.Database --+ | FileDatabase --+ | ExtensionDatabase
An 'ExtensionDatabase' is a 'FileDatabase' where each kind of entity (test, suite, resource) has a particular extension. For example, if tests have the extension '.qmt', then all files ending with '.qmt' are considered tests. If an extension for a particular kind of entity is not specified or is the empty string, then all files will be considered to be that kind of entity.
'ExtensionDatabase' is an abstract class.
|
|||
Inherited from |
|
|||
GetResourceExtension(self)
Return the extension that indicates a file is a resource. |
|||
GetResourcePath(self,
resource_id)
Return the file containing 'resource_id'. |
|||
GetSuiteExtension(self)
Return the extension that indicates a file is a suite. |
|||
GetSuitePath(self,
suite_id)
Return the file containing 'suite_id'. |
|||
GetTestExtension(self)
Return the extension that indicates a file is a test. |
|||
GetTestPath(self,
test_id)
Return the file containing 'test_id'. |
|||
_GetLabelFromBasename(self,
basename)
Returns the label associated with a file named 'basename'. |
|||
_GetPathFromLabel(self,
label)
Returns the file system path corresponding to 'label'. |
|||
_GetRelativeLabelPath(self,
label)
Returns a representation of 'label' as a filename. |
|||
_IsResourceFile(self,
path)
Returns true if 'path' is a resource file. |
|||
_IsSuiteFile(self,
path)
Returns true if 'path' is a test suite file or directory. |
|||
_IsTestFile(self,
path)
Returns true if 'path' is a test file. |
|||
__init__(self,
path,
arguments=None,
**args)
Construct a 'Database'. |
|||
Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
_argument_dictionary | |||
_argument_list | |||
arguments | |||
resource_extension | |||
suite_extension | |||
test_extension | |||
Inherited from Inherited from Inherited from Inherited from |
|
Return the extension that indicates a file is a resource. returns -- The extension (including the leading period) that indicates that a file is a resource. |
Return the file containing 'resource_id'. 'resource_id' -- The name of a resource. returns -- The absolute file name of the file that contains, or would contain, 'resource_id'. This method works even if no Resource named 'resource_id' exists. Derived classes may override this method.
|
Return the extension that indicates a file is a suite. returns -- The extension (including the leading period) that indicates that a file is a suite. |
Return the file containing 'suite_id'. 'suite_id' -- The name of a suite. returns -- The absolute file name of the file (or directory) that contains, or would contain, 'suite_id'. This method works even if no suite named 'suite_id' exists. Derived classes may override this method.
|
Return the extension that indicates a file is a test. returns -- The extension (including the leading period) that indicates that a file is a test. |
Return the file containing 'test_id'. 'test_id' -- The name of a test. returns -- The absolute file name of the file that contains, or would contain, 'test_id'. This method works even if no test named 'test_id' exists. Derived classes may override this method.
|
Returns the label associated with a file named 'basename'. 'basename' -- The basename of a file, including the extension. returns -- The corresponding label. Derived classes may override this method.
|
Returns the file system path corresponding to 'label'. 'label' -- The id for a test, test suite, or similar entity. returns -- The absolute path for the corresponding entry in the file system, but without any required extension.
|
Returns a representation of 'label' as a filename. returns -- A filename corresponding to 'label'.
|
Returns true if 'path' is a resource file. 'path' -- The absolute name of a file. All relevant components in the path name have already been checked to ensure that they are valid labels. returns -- True iff the file corresponds to a resource. Derived classes must override this method.
|
Returns true if 'path' is a test suite file or directory. 'path' -- The absolute name of a file. All relevant components in the path name have already been checked to ensure that they are valid labels. returns -- True iff the file corresponds to a test. Derived classes may override this method, but only to restrict the set of suites. In particular, a derived class method may return false where this method would return true, but never vice versa. Derived classes must override this method.
|
Returns true if 'path' is a test file. 'path' -- The absolute name of a file. All relevant components in the path name have already been checked to ensure that they are valid labels. returns -- True iff the file corresponds to a test. Derived classes must override this method.
|
Construct a 'Database'. 'path' -- A string containing the absolute path to the directory containing the database. 'arguments' -- A dictionary mapping attribute names to values. The use of this parameter is deprecated. Use keyword arguments instead. Derived classes must call this method from their own '__init__' methods. Every derived class must have an '__init__' method that takes the path to the directory containing the database as its only argument. The path provided to the derived class '__init__' function will always be an absolute path.
|
|
_argument_dictionary
|
_argument_list
|
arguments
|
resource_extension
|
suite_extension
|
test_extension
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 3.0alpha2 on Fri Sep 28 00:57:33 2007 | http://epydoc.sf.net |