class documentation

Mix-in class that handles temporary directories for test cases.

Method create_dist Will generate a test environment.
Method mkdtemp Create a temporary directory that will be cleaned up.
Method write_file Writes a file in the given path.
def create_dist(self, pkg_name='foo', **kw): (source)

Will generate a test environment. This function creates: - a Distribution instance using keywords - a temporary directory with a package structure It returns the package directory and the distribution instance.

def mkdtemp(self): (source)

Create a temporary directory that will be cleaned up. Returns the path of the directory.

def write_file(self, path, content='xxx'): (source)

Writes a file in the given path. path can be a string or a sequence.