Exemple #1
0
 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(), {})
Exemple #2
0
 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(), {})
Exemple #3
0
 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(), {})