def METHOD_NAME(self):
    x = ()
    def delindex(): del x[42]
    def setindex(): x[42] = 42
    self.assertRaisesMessage(TypeError, "'tuple' object doesn't support item deletion", delindex)
    self.assertRaisesMessage(TypeError, "'tuple' object does not support item assignment", setindex)