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()
def call_procs(self): WMI.win32_process = Mock(return_value=self.__processes) self.result = status.procs()