def METHOD_NAME(self):
    fake = FakeLock()
    lock = MeteredLock(fake, "test")
    lock.acquire()
    with capture_metrics() as metrics:
        lock.release()
        self.assertFalse(fake.locked)
    self.assertEqual(1, len(metrics.list("commcare.lock.locked_time")), metrics)