Example #1
0
 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())
Example #2
0
 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())
Example #3
0
 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())
Example #4
0
 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())