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 in tests.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

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

Methods

Methods

test_lock_wait()

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

test_lock_wait_timeout()

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

test_lockmgr()

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

test_lockmgr_except()

Testing that LockMgr correctly removes Locks after an exception

Attributes

Attributes