def test_semaphoreInvalidTokens(self):
        self.assertRaises(ValueError, defer.DeferredSemaphore, 0)
        self.assertRaises(ValueError, defer.DeferredSemaphore, -1)
If the token count passed to L{DeferredSemaphore} is less than one
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/test/test_defer.py/OtherPrimitives.test_semaphoreInvalidTokens