def METHOD_NAME(self):
    locks = {"A": MagicMock(), "B": MagicMock(), "C": MagicMock()}
    call_mock = MagicMock()
    call_mock.a = locks["A"]
    call_mock.b = locks["B"]
    call_mock.c = locks["C"]
    lock_chain = LockChain(locks)
    lock_chain.release()
    call_mock.assert_has_calls([call.a.release(), call.b.release(), call.c.release()])