def METHOD_NAME(self, mocked_init):
    sched = AgentSchedulingComponent(cfg=None, session=None)
    for c in self._test_cases['change_slots']:
        sched.nodes = c['nodes']
        if c['result'] == 'RuntimeError':
            with self.assertRaises(RuntimeError):
                sched._change_slot_states(slots=c['slots'],
                                          new_state=c['new_state'])
        else:
            sched._change_slot_states(slots=c['slots'],
                                      new_state=c['new_state'])
            self.assertEqual(sched.nodes, c['result'])