(self, r)
| 95 | self._test_owned(r_decoded) |
| 96 | |
| 97 | def test_competing_locks(self, r): |
| 98 | lock1 = self.get_lock(r, "foo") |
| 99 | lock2 = self.get_lock(r, "foo") |
| 100 | assert lock1.acquire(blocking=False) |
| 101 | assert not lock2.acquire(blocking=False) |
| 102 | lock1.release() |
| 103 | assert lock2.acquire(blocking=False) |
| 104 | assert not lock1.acquire(blocking=False) |
| 105 | lock2.release() |
| 106 | |
| 107 | def test_timeout(self, r): |
| 108 | lock = self.get_lock(r, "foo", timeout=10) |