@contextlib.contextmanager
    def isolated_filesystem(self):
        cwd = os.getcwd()
        t = tempfile.mkdtemp()
        os.chdir(t)
        try:
            yield t
        finally:
            os.chdir(cwd)
            try:
                shutil.rmtree(t)
            except (OSError, IOError):
                pass
Drops an object onto a node.
dataset/ETHPy150Open pallets/click/click/testing.py/CliRunner.isolated_filesystem--crossover with--dataset/ETHPy150Open enthought/pyface/pyface/tree/node_tree_model.py/NodeTreeModel.drop