コード例 #1
0
ファイル: test_win_license.py プロジェクト: cldeluna/salt
 def test_uninstall(self):
     '''
         Test uninstalling the given product key
     '''
     mock = MagicMock()
     with patch.dict(win_license.__salt__, {'cmd.run': mock}):
         win_license.uninstall()
         mock.assert_called_once_with(r'cscript C:\Windows\System32\slmgr.vbs /upk')
コード例 #2
0
 def test_uninstall(self):
     '''
         Test uninstalling the given product key
     '''
     mock = MagicMock()
     with patch.dict(license.__salt__, {'cmd.run': mock}):
         license.uninstall()
         mock.assert_called_once_with(r'cscript C:\Windows\System32\slmgr.vbs /upk')