oslo.concurrency/oslo_concurrency/tests
Eric Fried fec03875e9 Add lock_with_prefix convenience utility
There's a convenience wrapper around the lockutils.synchronized
decorator that lets oslo.concurrency consumers set up a prefix to use
for all lock files (presumably to obviate collisions with other
consumers when using jejune lock names, like 'lock'). This commit adds
an equivalent wrapper around lockutils.lock, the context manager
counterpart to the lockutils.synchronized decorator.

Note that the unit test added for lock_with_prefix is pretty bare; but
it follows the precedent set by the existing tests. Future commits
should make all these tests more thorough/robust.

Change-Id: I4e723ee3be1e57c543684390b607c84388c6e930
2019-09-17 16:23:01 -05:00
..
unit Add lock_with_prefix convenience utility 2019-09-17 16:23:01 -05:00
__init__.py Add eventlet test check to new tests __init__.py 2015-02-06 17:32:39 +00:00