

def test_show(self):
    '\n        Test if it show information about a specific Perl module\n        '
    mock = MagicMock(return_value='')
    with patch.dict(cpan.__salt__, {
        'cmd.run': mock,
    }):
        mock.assertDictEqual(cpan.show('Alloy'), {
            'error': 'This package does not seem to exist',
            'name': 'Alloy',
        })

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