TestLockMgrModule¶
-
class
tests.test_lockmgr.TestLockMgrModule(methodName='runTest')[source]¶ Tests which are related to the module-level functions in
lockmgr.lockmgrTests related to the manager class
lockmgr.lockmgr.LockMgrcan be found intests.test_lockmgr_class-
__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_getlock_clean()[source]¶ Locking test_getlock then checking if Locked is raised when calling it again.
-
test_getlock_unlock()[source]¶ Locking test_unlock, unlocking it, then lock/unlock again to confirm it was freed.
-
Methods¶
Methods
Locking test_getlock then checking if Locked is raised when calling it again. |
|
Locking test_unlock, unlocking it, then lock/unlock again to confirm it was freed. |
|
Locking test_is_locked then testing is_locked returns True for existing locks and False for non-existent. |
|
Test that expired locks are correctly removed |
|
Test that locks with |
|
Test that locks with |