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