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)
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)