Ejemplo n.º 1
0
    def test_priority(self):
        process_priority = ProcessPriority(1, self.__metric_repository)

        priority = process_priority.priority()

        self.assertEqual(priority, 99)
Ejemplo n.º 2
0
    def test_policy(self):
        process_priority = ProcessPriority(1, self.__metric_repository)

        policy = process_priority.policy()

        self.assertEqual(policy, 'FIFO')
Ejemplo n.º 3
0
    def test_user_id(self):
        process_priority = ProcessPriority(1, self.__metric_repository)

        user_id = process_priority.user_id()

        self.assertEqual(user_id, 0)
Ejemplo n.º 4
0
    def test_pid(self):
        process_priority = ProcessPriority(1, self.__metric_repository)

        pid = process_priority.pid()

        self.assertEqual(pid, 1)
Ejemplo n.º 5
0
    def test_process_name(self):
        process_priority = ProcessPriority(1, self.__metric_repository)

        name = process_priority.process_name()

        self.assertEqual(name, 'test')
Ejemplo n.º 6
0
    def test_priority(self):
        process_priority = ProcessPriority(1,self.__metric_repository)

        priority = process_priority.priority()

        self.assertEqual(priority,99)
Ejemplo n.º 7
0
    def test_user_id(self):
        process_priority = ProcessPriority(1,self.__metric_repository)

        user_id = process_priority.user_id()

        self.assertEqual(user_id,0)
Ejemplo n.º 8
0
    def test_policy(self):
        process_priority = ProcessPriority(1,self.__metric_repository)

        policy = process_priority.policy()

        self.assertEqual(policy,'FIFO')
Ejemplo n.º 9
0
    def test_process_name(self):
        process_priority = ProcessPriority(1,self.__metric_repository)

        name = process_priority.process_name()

        self.assertEqual(name,'test')
Ejemplo n.º 10
0
    def test_pid(self):
        process_priority = ProcessPriority(1,self.__metric_repository)

        pid = process_priority.pid()

        self.assertEqual(pid,1)