Example #1
0
 def test_list_counters(self):
     counters = win_pdh.list_counters("Processor")
     known_counters = ["% Processor Time", "% User Time", "% DPC Time"]
     for item in known_counters:
         self.assertTrue(item in counters)
Example #2
0
 def test_list_counters(self):
     counters = win_pdh.list_counters('Processor')
     known_counters = ['% Processor Time', '% User Time', '% DPC Time']
     for item in known_counters:
         self.assertTrue(item in counters)