def setUp(self):
        super(CollectionTestCase, self).setUp()
        if self.service.splunk_version[0] >= 5 and 'modular_input_kinds' not in collections:
            collections.append('modular_input_kinds') # Not supported before Splunk 5.0
        else:
            logging.info("Skipping modular_input_kinds; not supported by Splunk %s" % \
                         '.'.join(str(x) for x in self.service.splunk_version))
        for saved_search in self.service.saved_searches:
            if saved_search.name.startswith('delete-me'):
                try:
                    for job in saved_search.history():
                        job.cancel()
                    self.service.saved_searches.delete(saved_search.name)
                except __HOLE__:
                    pass
dataset/ETHPy150Open splunk/splunk-sdk-python/tests/test_collection.py/CollectionTestCase.setUp