'Mock WMI related Python packages, so it can be tested on any environment.'

def setUp(self):

    self.patcher = patch.dict('sys.modules', {'pywintypes': Mock(), 'pythoncom': Mock(), 'win32com': Mock(), 'win32com.client': Mock(Dispatch=Dispatch)})
    self.patcher.start()
