Esempio n. 1
0
 def test_list_instances(self):
     instances = win_pdh.list_instances("Processor")
     known_instances = ["0", "_Total"]
     for item in known_instances:
         self.assertTrue(item in instances)
Esempio n. 2
0
 def test_list_instances(self):
     instances = win_pdh.list_instances('Processor')
     known_instances = ['0', '_Total']
     for item in known_instances:
         self.assertTrue(item in instances)