Exemplo 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())
Exemplo 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())
Exemplo 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())