def _testExceptionWithLast(self, test_str, last): r = RangesList(test_str) with self.assertRaises(KittyException): r.set_last(last)
def _testSimpleWithLast(self, test_str, expected_list, last): r = RangesList(test_str) r.set_last(last) self._do_tests(r, expected_list)