'Out of range exceptions'

def test05_out_of_range_exceptions(self):

    def setfcn(x, i):
        x[i] = 20
    def getfcn(x, i):
        return x[i]
    def delfcn(x, i):
        del x[i]
    (pl, ul) = self.lists_of_len()
    for i in (((-1) - self.limit), self.limit):
        with self.assertRaises(IndexError):
            setfcn(ul, i)
        with self.assertRaises(IndexError):
            getfcn(ul, i)
        with self.assertRaises(IndexError):
            delfcn(ul, i)
