tests.test_lockmgr_class

Classes

TestLockMgrClass([methodName])

Tests which are related to the manager class lockmgr.lockmgr.LockMgr

class tests.test_lockmgr_class.TestLockMgrClass(methodName='runTest')[source]

Tests which are related to the manager class lockmgr.lockmgr.LockMgr

Tests related to the module-level functions in lockmgr.lockmgr can be found in tests.test_lockmgr

test_lock_wait()[source]

Test that LockMgr runs code with ‘wait for lock expiry’ when lock expires within wait period

test_lock_wait_timeout()[source]

Test that LockMgr raises Locked with ‘wait for lock expiry’ when lock still locked after waiting period

test_lockmgr()[source]

Locking test_lockmgr and test_lockmgr2 using LockMgr, then verifying the lock was created

test_lockmgr_except()[source]

Testing that LockMgr correctly removes Locks after an exception