def test_modify_job_pillar(self):
        schedule = {'foo': 'bar'}
        ret = copy.deepcopy(DEFAULT_CONFIG)
        ret.update({'pillar': {'schedule': {'name': {'foo': 'bar'}}}})
        self.schedule.opts.update({'pillar': {'schedule': {'name': {'foo': 'bar'}}}})
        Schedule.modify_job(self.schedule, 'name', schedule, persist=False, where='pillar')
        self.assertEqual(self.schedule.opts, ret)
Tests modifying a job in the scheduler in pillar
dataset/ETHPy150Open saltstack/salt/tests/unit/utils/schedule_test.py/ScheduleTestCase.test_modify_job_pillar