Beispiel #1
0
 def test_list_objects(self):
     known_objects = ["Cache", "Memory", "Process", "Processor", "System"]
     objects = win_pdh.list_objects()
     for item in known_objects:
         self.assertTrue(item in objects)
Beispiel #2
0
 def test_list_objects(self):
     known_objects = ['Cache', 'Memory', 'Process', 'Processor', 'System']
     objects = win_pdh.list_objects()
     for item in known_objects:
         self.assertTrue(item in objects)