'C{_consumeLength} raises a L{basic.NetstringParseError} if
the length specification exceeds the value of C{MAX_LENGTH}
by 1 (border case).'

def test_consumeLengthBorderCase2(self):

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