def METHOD_NAME(self):
    assert_raises = functools.partial(
        self.assertRaises, errors.LockError, self._call, self.tempdir)
    lock_path = os.path.join(self.tempdir, '.certbot.lock')
    test_util.lock_and_call(assert_raises, lock_path)