The oslo_concurrency.tests.unit.test_lockutils Module

class oslo_concurrency.tests.unit.test_lockutils.BrokenLock(name, errno_code)

Bases: oslo_concurrency.lockutils._FileLock

trylock()
unlock()
class oslo_concurrency.tests.unit.test_lockutils.FileBasedLockingTestCase(*args, **kwds)

Bases: oslotest.base.BaseTestCase

setUp()
test_bad_acquire()
test_interprocess_lock()
test_interthread_external_lock()
test_lock_file_exists()
test_non_destructive()
class oslo_concurrency.tests.unit.test_lockutils.LockTestCase(*args, **kwds)

Bases: oslotest.base.BaseTestCase

setUp()
test_contextlock()
test_contextlock_unlocks()
test_deprecated_names()
test_lock_acquire_release_file_lock()
test_lock_externally()
test_lock_externally_lock_dir_not_exist()
test_lock_internally()

We can lock across multiple threads.

test_lock_internally_different_collections()
test_nested_synchronized_external_works()

We can nest external syncs.

test_no_slash_in_b64()
test_remove_lock_external_file()
test_remove_lock_external_file_lock_path()
test_synchronized_prefix_without_hypen()
test_synchronized_with_prefix()
test_synchronized_without_prefix()
test_synchronized_wrapped_function_metadata()
class oslo_concurrency.tests.unit.test_lockutils.LockutilsModuleTestCase(*args, **kwds)

Bases: oslotest.base.BaseTestCase

setUp()
tearDown()
test_direct_call_explodes()
test_main()
test_return_value_maintained()
class oslo_concurrency.tests.unit.test_lockutils.TestLockFixture(*args, **kwds)

Bases: oslotest.base.BaseTestCase

setUp()
tearDown()
test_lock_fixture()

This Page