@patch('salt.modules.cpan.show',
           MagicMock(return_value={'Salt': 'salt'}))
    def test_show_mock(self):
        mock = MagicMock(return_value='Salt module installed')
        with patch.dict(cpan.__salt__, {'cmd.run': mock}):
            self.assertDictEqual(cpan.show('Alloy'), {'Salt': 'salt'})

    # 'show_config' function tests: 1
Application.render_exception() displays formatted exception.
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/cpan_test.py/CpanTestCase.test_show_mock--crossover with--dataset/ETHPy150Open sdispater/cleo/tests/test_application.py/ApplicationTest.test_render_exception