def METHOD_NAME(self, wf, hold=False):
    lock1 = self.obs_lock(wf)
    lock2 = self.obs_lock(wf)
    self.assertFalse(lock1.locked)
    self.assertFalse(lock2.locked)
    with lock1:
        self.assertTrue(lock1.locked)
        self.assertLockFail(lock2)
    if not hold:
        # A hold will remain locked.
        self.assertFalse(lock1.locked)
    self.assertFalse(lock2.locked)