def test_finishedEarly(self):
        self.enforcer.write(b'x' * 9)
        self.assertRaises(WrongBodyLength, self.enforcer._noMoreWritesExpected)
L{LengthEnforcingConsumer._noMoreWritesExpected} raises
dataset/ETHPy150Open twisted/twisted/twisted/web/test/test_newclient.py/LengthEnforcingConsumerTests.test_finishedEarly