Пример #1
0
 def call_procs(self):
     WMI = Mock()
     WMI.win32_process = Mock(return_value=self.__processes)
     with patch.object(wmi, 'WMI', Mock(return_value=WMI)):
         self.result = status.procs()
Пример #2
0
 def call_procs(self):
     WMI.win32_process = Mock(return_value=self.__processes)
     self.result = status.procs()
Пример #3
0
 def call_procs(self):
     WMI.win32_process = Mock(return_value=self.__processes)
     self.result = status.procs()