def test_is_installed(self): """ Test for check if Rbenv is installed. """ with patch.object(rbenv, "_rbenv_bin", return_value="A"): with patch.dict(rbenv.__salt__, {"cmd.has_exec": MagicMock(return_value=True)}): self.assertTrue(rbenv.is_installed())
def test_is_installed(self): ''' Test for check if Rbenv is installed. ''' with patch.object(rbenv, '_rbenv_bin', return_value='A'): with patch.dict(rbenv.__salt__, {'cmd.has_exec': MagicMock(return_value=True)}): self.assertTrue(rbenv.is_installed())