Commit b10b9d74 authored by Guido Trotter's avatar Guido Trotter
Browse files

Add a more comment lines to testLockingConstants

This is to discourage even more whoever may think that this requirement
is not really useful and can be lifted, and to at least know where it's
used before trying to break it.

Reviewed-by: imsnah
parent fbe9022f
......@@ -584,6 +584,8 @@ class TestGanetiLockManager(unittest.TestCase):
def testLockingConstants(self):
# The locking library internally cheats by assuming its constants have some
# relationships with each other. Check those hold true.
# This relationship is also used in the Processor to recursively acquire
# the right locks. Again, please don't break it.
for i in range(len(locking.LEVELS)):
self.assertEqual(i, locking.LEVELS[i])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment