def test_finishedEarly(self):
        self.enforcer.write(b'x' * 9)
        self.assertRaises(WrongBodyLength, self.enforcer._noMoreWritesExpected)
Runs when trigger is created
dataset/ETHPy150Open twisted/twisted/twisted/web/test/test_newclient.py/LengthEnforcingConsumerTests.test_finishedEarly--crossover with--dataset/ETHPy150Open StackStorm/st2/st2reactor/st2reactor/sensor/base.py/BaseSensor.add_trigger