tests.test_renew¶
Classes
|
-
class
tests.test_renew.
TestLockRenew
(methodName='runTest')[source]¶ -
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
-