def reset_db_and_disk(self):
        self.env.reset_db()
        self.env.shutdown() # really closes the db connections
        shutil.rmtree(self.env.path)
        if self._old_registry is not None:
            self.restore_component_registry()

    # other utilities
Performs a complete environment reset in a robust way.
dataset/ETHPy150Open edgewall/trac/trac/test.py/EnvironmentStub.reset_db_and_disk