

def test_remove_noninstalled_error(self):
    '\n        Test if it remove non installed module using cpan\n        '
    mock = MagicMock(return_value={
        'installed version': None,
    })
    with patch.object(cpan, 'show', mock):
        mock.assertDictEqual(cpan.remove('Alloy'), {
            'new': None,
            'old': None,
        })

dataset/ETHPy150Open saltstack/salt/tests/unit/modules/cpan_test.py CpanTestCase.test_remove_noninstalled_error/VarMisuse@42/81 `self`->`mock`