def chdir_tmp(self):
    'Create a temporary directory and set it as the working directory.\n\n        The directory will be deleted after the test has finished.\n\n        Version Added:\n            3.0\n\n        Returns:\n            unicode:\n            The path to the temp directory.\n        '
    dirname = make_tempdir()
    os.chdir(dirname)
    return dirname
Create a temporary directory and set it as the working directory.

The directory will be deleted after the test has finished.

Version Added:
    3.0

Returns:
    unicode:
    The path to the temp directory.
def chdir_tmp(self):
    'Create a temporary directory and set it as the working directory.\n\n        The directory will be deleted after the test has finished.\n\n        Version Added:\n            3.0\n\n        Returns:\n            unicode:\n            The path to the temp directory.\n        '
    dirname = make_tempdir()
    os.chdir(dirname)
    return dirname