Logo Search packages:      
Sourcecode: ubuntu-sso-client version File versions  Download package

def mocker::MockerTestCase::makeDir (   self,
  suffix = "",
  prefix = "tmp",
  dirname = None,
  path = None 
) [inherited]

Create a temporary directory and return the path to it.

@param suffix: Suffix to be given to the file's basename.
@param prefix: Prefix to be given to the file's basename.
@param dirname: Put directory inside this parent directory.

The directory is removed after the test runs.

Definition at line 191 of file mocker.py.

00191                                                                        :
        """Create a temporary directory and return the path to it.

        @param suffix: Suffix to be given to the file's basename.
        @param prefix: Prefix to be given to the file's basename.
        @param dirname: Put directory inside this parent directory.

        The directory is removed after the test runs.
        """
        if path is not None:
            os.makedirs(path)
        else:
            path = tempfile.mkdtemp(suffix, prefix, dirname)
        self.__cleanup_paths.append(path)
        return path

    def failUnlessIs(self, first, second, msg=None):


Generated by  Doxygen 1.6.0   Back to index