def METHOD_NAME(self):
    new_range = DataRange1D(low=0.42, high=1.42)
    with self.assertTraitChanges(self.textplot, "index_range", count=1):
        self.textplot.index_mapper = LinearMapper(range=new_range)
    self.assertIs(self.textplot.index_range, new_range)