

def test_remove_nopan_error(self):
    '\n        Test if it gives no cpan error while removing\n        '
    ret = {
        'error': 'No CPAN data available to use for uninstalling',
    }
    mock = MagicMock(return_value={
        'installed version': '2.1',
    })
    with patch.object(cpan, 'show', mock):
        mock.assertDictEqual(cpan.remove('Alloy'), ret)

dataset/ETHPy150Open saltstack/salt/tests/unit/modules/cpan_test.py CpanTestCase.test_remove_nopan_error/VarMisuse@53/116 `self`->`mock`