(self)
| 26 | class LockTests(unittest.IsolatedAsyncioTestCase): |
| 27 | |
| 28 | async def test_repr(self): |
| 29 | lock = asyncio.Lock() |
| 30 | self.assertEndsWith(repr(lock), '[unlocked]>') |
| 31 | self.assertTrue(RGX_REPR.match(repr(lock))) |
| 32 | |
| 33 | await lock.acquire() |
| 34 | self.assertEndsWith(repr(lock), '[locked]>') |
| 35 | self.assertTrue(RGX_REPR.match(repr(lock))) |
| 36 | |
| 37 | async def test_lock(self): |
| 38 | lock = asyncio.Lock() |
nothing calls this directly
no test coverage detected