def test_cancelLockBeforeAcquired(self):
        lock = defer.DeferredLock()
        lock.acquire()
        d = lock.acquire()
        self.assertFailure(d, defer.CancelledError)
        d.cancel()
Add a allowed rule.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/test/test_defer.py/OtherPrimitives.test_cancelLockBeforeAcquired--crossover with--dataset/ETHPy150Open tonyseek/simple-rbac/rbac/acl.py/Registry.allow