def METHOD_NAME(self):
    primitives = [
        asyncio.Lock(),
        asyncio.Condition(),
        asyncio.Semaphore(),
        asyncio.BoundedSemaphore(),
    ]
    async def test(lock):
        await asyncio.sleep(0.01)
        self.assertFalse(lock.locked())
        with self.assertRaisesRegex(
            TypeError,
            "can't be used in 'await' expression"
        ):
            with await lock:
                pass
    for primitive in primitives:
        self.loop.run_until_complete(test(primitive))
        self.assertFalse(primitive.locked())