Пример #1
0
    def test_method_table(self):
        method_table = Job.method_table()

        # This confirms the number of JobOperation and method_table count is same
        self.assertEqual(len(method_table), len(JobOperation))

        # This confirms all operations of JobOperation are registered
        self.assertTrue(all([x.value in method_table for x in JobOperation]))