示例#1
0
文件: rbenv_test.py 项目: DaveQB/salt
 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())
示例#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())
示例#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())
示例#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())