'Restore back write rights on created paths: if tests modified the
rights, that will allow the paths to be removed easily afterwards.'

def tearDown(self):

    os.chmod(self.dir, 511)
    if os.path.exists(self.path):
        os.chmod(self.path, 511)
