def test_show_config(self): ''' Test if it return a dict of CPAN configuration values ''' mock = MagicMock(return_value='') with patch.dict(cpan.__salt__, {'cmd.run': mock}): self.assertDictEqual(cpan.show_config(), {})
def test_show_config(self): """ Test if it return a dict of CPAN configuration values """ mock = MagicMock(return_value="") with patch.dict(cpan.__salt__, {"cmd.run": mock}): self.assertDictEqual(cpan.show_config(), {})