def test_parse_cpu_list(self): self.assertEqual(context.parse_cpu_list(TEST_CPULIST_1), [0, 1, 2, 3]) self.assertEqual( context.parse_cpu_list(TEST_CPULIST_2), [0, 1, 2, 3, 4, 5, 6, 7, 16, 17, 18, 19, 20, 21, 22, 23]) self.assertEqual(context.parse_cpu_list(TEST_CPULIST_3), [0, 4, 8, 12, 16, 20, 24])
def test_parse_cpu_list(self): self.assertEqual(context.parse_cpu_list(TEST_CPULIST_1), [0, 1, 2, 3]) self.assertEqual(context.parse_cpu_list(TEST_CPULIST_2), [0, 1, 2, 3, 4, 5, 6, 7, 16, 17, 18, 19, 20, 21, 22, 23]) self.assertEqual(context.parse_cpu_list(TEST_CPULIST_3), [0, 4, 8, 12, 16, 20, 24])