TestLockMgrClass¶
-
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 intests.test_lockmgr
-
__init__
(methodName='runTest') Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
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
-
Methods¶
Methods
Test that LockMgr runs code with ‘wait for lock expiry’ when lock expires within wait period |
|
Test that LockMgr raises Locked with ‘wait for lock expiry’ when lock still locked after waiting period |
|
Locking test_lockmgr and test_lockmgr2 using LockMgr, then verifying the lock was created |
|
Testing that LockMgr correctly removes Locks after an exception |