'Length limits'

def test08_min_length(self):

    (pl, ul) = self.lists_of_len(5)
    ul._minlength = 3
    def delfcn(x, i):
        del x[:i]
    def setfcn(x, i):
        x[:i] = []
    for i in range(((len(ul) - ul._minlength) + 1), len(ul)):
        with self.assertRaises(ValueError):
            delfcn(ul, i)
        with self.assertRaises(ValueError):
            setfcn(ul, i)
    del ul[:(len(ul) - ul._minlength)]
    ul._maxlength = 4
    for i in range(0, (ul._maxlength - len(ul))):
        ul.append(i)
    with self.assertRaises(ValueError):
        ul.append(10)
