Esempio n. 1
0
 def test_update(self):
     """
     Test if it updates the current versions of pyenv and python-Build
     """
     mock_opt = MagicMock(return_value="salt stack")
     with patch.dict(pyenv.__salt__, {"config.option": mock_opt}):
         self.assertFalse(pyenv.update())
Esempio n. 2
0
 def test_update(self):
     '''
     Test if it updates the current versions of pyenv and python-Build
     '''
     mock_opt = MagicMock(return_value='salt stack')
     with patch.dict(pyenv.__salt__, {'config.option': mock_opt}):
         self.assertFalse(pyenv.update())
Esempio n. 3
0
 def test_update(self):
     '''
     Test if it updates the current versions of pyenv and python-Build
     '''
     mock_opt = MagicMock(return_value='salt stack')
     with patch.dict(pyenv.__salt__, {'config.option': mock_opt}):
         self.assertFalse(pyenv.update())