예제 #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())
예제 #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())
예제 #3
0
파일: pyenv_test.py 프로젝트: DaveQB/salt
 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())