Esempio n. 1
0
 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')
Esempio n. 2
0
 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')