Ejemplo n.º 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(), {})
Ejemplo n.º 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(), {})
Ejemplo n.º 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(), {})