def test_enable_job(self):
        self.schedule.opts.update({'schedule': {'name': {'enabled': 'foo'}}})
        Schedule.enable_job(self.schedule, 'name')
        del self.schedule.opts['sock_dir']
        self.assertTrue(self.schedule.opts['schedule']['name']['enabled'])
Retrieve a SourceLocation from a given character offset.
dataset/ETHPy150Open saltstack/salt/tests/unit/utils/schedule_test.py/ScheduleTestCase.test_enable_job--crossover with--dataset/ETHPy150Open punchagan/cinspect/cinspect/vendor/clang/cindex.py/SourceLocation.from_offset