def test_licensed(self):
        mock = MagicMock(return_value='License Status: Licensed')
        with patch.dict(license.__salt__, {'cmd.run': mock}):
            license.licensed()
            mock.assert_called_once_with(r'cscript C:\Windows\System32\slmgr.vbs /dli')
Test checking if the minion is licensed
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/win_license_test.py/LicenseTestCase.test_licensed