

@patch('salt.modules.cpan.show', MagicMock(return_value={
    'Salt': 'salt',
}))
def test_show_mock(self):
    '\n        Test if it show information about a specific Perl module\n        '
    mock = MagicMock(return_value='Salt module installed')
    with patch.dict(cpan.__salt__, {
        'cmd.run': mock,
    }):
        mock.assertDictEqual(cpan.show('Alloy'), {
            'Salt': 'salt',
        })

dataset/ETHPy150Open saltstack/salt/tests/unit/modules/cpan_test.py CpanTestCase.test_show_mock/VarMisuse@62/123 `self`->`mock`