class documentation

class StructureAssertingMixin: (source)

Known subclasses: twisted.python.test.test_release.CommandsTestMixin

View In Hierarchy

A mixin for TestCase subclasses which provides some methods for asserting the structure and contents of directories and files on the filesystem.

Method assertStructure Assert that a directory is equivalent to one described by a dict.
Method createStructure No summary
def assertStructure(self, root, dirDict): (source)

Assert that a directory is equivalent to one described by a dict.

Parameters
root:FilePathThe filesystem directory to compare.
dirDict:dictThe dict that should describe the contents of the directory. It should be the same structure as the dirDict parameter to createStructure.
def createStructure(self, root, dirDict): (source)