def test_append_to_queue(self):
        scheduler = Scheduler(FiFoStubStrategy())
        scheduler.addToReadyQueue(self.pcb1)  # process form state inactive get's ready
        scheduler.addToReadyQueue(self.pcb2)  # and now process 2

        self.assertListEqual([self.pcb1, self.pcb2], scheduler.ready_queue)
    def test_get_from_ready_queue(self):
        scheduler = Scheduler(FiFoStubStrategy())
        scheduler.addToReadyQueue(self.pcb2)

        process = scheduler.popFromReadyQueue()
        self.assertEqual(id(process), id(self.pcb2))
 def test_time_since_last_dispatch(self):
     scheduler = Scheduler(FiFoStubStrategy())
     scheduler.addToReadyQueue(self.pcb2)