@skipIf(SingleMachineBatchSystem.numCores < 3, 'Need at least three cores to run this test')
    def testServices(self):
        options = Job.Runner.getDefaultOptions(self._getTestJobStorePath())
        options.logDebug = True
        options.maxCores = 3
        self.assertTrue(options.maxCores <= SingleMachineBatchSystem.numCores)
        Job.Runner.startToil(Job.wrapJobFn(parentJob, self.scriptCommand()), options)
        with open(self.counterPath, 'r+') as f:
            s = f.read()
        log.info('Counter is %s', s)
        self.assertEqual(self.getCounters(), (0, 3))


# Toil can use only top-level functions so we have to add them here:
dataset/ETHPy150Open BD2KGenomics/toil/src/toil/test/batchSystems/batchSystemTest.py/MaxCoresSingleMachineBatchSystemTest.testServices/original