def METHOD_NAME(self):
    m = ConcreteModel()
    m.i = IntervalVar()
    with self.assertRaisesRegex(
        ValueError,
        "Attempting to declare a block component using the name of a "
        "reserved attribute:\n\tnew_thing",
    ):
        m.i.new_thing = IntervalVar()