def set_test_list(self, test_list_str=''): ''' :param test_list_str: listing of the test to execute The test list should be a comma-delimited string, and each element should be one of the following forms: '-x' - run from test 0 to test x 'x-' - run from test x to the end 'x' - run test x 'x-y' - run from test x to test y To execute all tests, pass None or an empty string ''' self.session_info.test_list_str = test_list_str self._test_list = RangesList(test_list_str)
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)
def _testException(self, test_str): with self.assertRaises(KittyException): RangesList(test_str)
def _testSimpleNoLast(self, test_str, expected_list): r = RangesList(test_str) self._do_tests(r, expected_list)