def _local_file(self, contents='Dummy content\n'):
        handle, path = tempfile.mkstemp()
        if contents is not None:
            with open(path, 'w') as f:
                f.write(contents)
        self.addCleanup(partial(os.close, handle))
        return path
Create a temporary local file and return its path. The file will be
dataset/ETHPy150Open amnong/easywebdav/tests/__init__.py/TestCase._local_file