'L{LengthEnforcingConsumer._noMoreWritesExpected} raises
L{WrongBodyLength} if it is called before the indicated number of bytes
have been written.'

def test_finishedEarly(self):

    self.enforcer.write(('x' * 9))
    self.assertRaises(WrongBodyLength, self.enforcer._noMoreWritesExpected)
