Пример #1
0
 def test_uninstall(self):
     """
         Test Uninstalling an APP package with a specific target
     """
     mock = MagicMock()
     with patch.dict(macpackage.__salt__, {"file.remove": mock}):
         macpackage.uninstall_app("/path/to/file.app")
         mock.assert_called_once_with("/path/to/file.app")
Пример #2
0
 def test_uninstall(self):
     '''
         Test Uninstalling an APP package with a specific target
     '''
     mock = MagicMock()
     with patch.dict(macpackage.__salt__, {'file.remove': mock}):
         macpackage.uninstall_app('/path/to/file.app')
         mock.assert_called_once_with('/path/to/file.app')