TestLockRenew¶
-
class
tests.test_renew.
TestLockRenew
(methodName='runTest')[source]¶ -
__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_lockmgr_renew_expired
()[source]¶ Renew an expired main lock within a LockMgr ‘with’ statement, confirm time was added to the lock expiry
-
test_lockmgr_renew_main
()[source]¶ Renew the main lock within a LockMgr ‘with’ statement, confirm appropriate time was added to the lock
-
test_renew_existing_name
()[source]¶ Renew an existing lock by lock name and confirm locked_until was increased
-
test_renew_existing_name_add_time
()[source]¶ Renew an existing lock by lock name with add_time=True and confirm locked_until was increased
-
test_renew_existing_object_add_time
()[source]¶ Renew an existing lock by Lock object with add_time=True and confirm locked_until was increased
-
test_renew_lock_object
()[source]¶ Renew an existing lock by Lock object and confirm locked_until was increased
-
test_renew_non_existing_name
()[source]¶ Renew a non-existent lock by lock name and confirm LockNotFound is raised
-
test_renew_non_existing_name_create
()[source]¶ Renew a non-existent lock by lock name with create=True and confirm new lock is created
-
Methods¶
Methods
Renew an expired main lock within a LockMgr ‘with’ statement, confirm time was added to the lock expiry |
|
Renew the main lock within a LockMgr ‘with’ statement, confirm appropriate time was added to the lock |
|
Renew an existing lock by lock name and confirm locked_until was increased |
|
Renew an existing lock by lock name with add_time=True and confirm locked_until was increased |
|
Renew an existing lock by Lock object with add_time=True and confirm locked_until was increased |
|
Renew an existing lock by Lock object and confirm locked_until was increased |
|
Renew a non-existent lock by lock name and confirm LockNotFound is raised |
|
Renew a non-existent lock by lock name with create=True and confirm new lock is created |
|
Renew a lock with a shorter expiration time than it already has. |
|
Renew a lock with a shorter expiration seconds (but with add_time=True). |