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')
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')