def test_activate(self): ''' Test activating the current product key ''' mock = MagicMock() with patch.dict(win_license.__salt__, {'cmd.run': mock}): win_license.activate() mock.assert_called_once_with(r'cscript C:\Windows\System32\slmgr.vbs /ato')
def test_activate(self): ''' Test activating the current product key ''' mock = MagicMock() with patch.dict(license.__salt__, {'cmd.run': mock}): license.activate() mock.assert_called_once_with(r'cscript C:\Windows\System32\slmgr.vbs /ato')