'C{_consumeLength} raises a L{basic.NetstringParseError} if
the length specification exceeds the value of C{MAX_LENGTH}
by more than 1.'

def test_consumeLengthBorderCase3(self):

    self.netstringReceiver._remainingData = '1000:'
    self.netstringReceiver.MAX_LENGTH = 11
    self.assertRaises(basic.NetstringParseError, self.netstringReceiver._consumeLength)
