def METHOD_NAME(self):
    lock = MeteredLock(FakeLock(timeout=-1), "test")
    lock.acquire()
    with capture_metrics() as metrics:
        lock.release()
    self.assertEqual(1, len(metrics.list("commcare.lock.released_after_timeout", lock_name='test')), metrics)