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

test_renew_shorter_expiration()[source]

Renew a lock with a shorter expiration time than it already has. Test the expiration time doesn’t drop.

test_renew_shorter_expiration_add_time()[source]

Renew a lock with a shorter expiration seconds (but with add_time=True). Test expiration time increases.

Methods

Methods

test_lockmgr_renew_expired()

Renew an expired main lock within a LockMgr ‘with’ statement, confirm time was added to the lock expiry

test_lockmgr_renew_main()

Renew the main lock within a LockMgr ‘with’ statement, confirm appropriate time was added to the lock

test_renew_existing_name()

Renew an existing lock by lock name and confirm locked_until was increased

test_renew_existing_name_add_time()

Renew an existing lock by lock name with add_time=True and confirm locked_until was increased

test_renew_existing_object_add_time()

Renew an existing lock by Lock object with add_time=True and confirm locked_until was increased

test_renew_lock_object()

Renew an existing lock by Lock object and confirm locked_until was increased

test_renew_non_existing_name()

Renew a non-existent lock by lock name and confirm LockNotFound is raised

test_renew_non_existing_name_create()

Renew a non-existent lock by lock name with create=True and confirm new lock is created

test_renew_shorter_expiration()

Renew a lock with a shorter expiration time than it already has.

test_renew_shorter_expiration_add_time()

Renew a lock with a shorter expiration seconds (but with add_time=True).

Attributes

Attributes