Module Expr Str ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias alias ImportFrom alias Expr Call NameLoad Str ImportFrom alias Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Dict Str Str Str Str NameLoad Dict NameLoad Str Assign NameStore Call NameLoad keyword ListLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword Str Assign NameStore Call NameLoad keyword ListLoad Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str Str Str Str NameLoad NameLoad NameLoad NameLoad NameLoad body With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str NameLoad NameLoad NameLoad Dict NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Dict Str Str Str Str NameLoad Dict NameLoad Str Assign NameStore Call NameLoad keyword ListLoad NameLoad NameLoad Assign NameStore Call NameLoad keyword Str Assign NameStore Call NameLoad keyword ListLoad Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str Str NameLoad NameLoad NameLoad body With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Dict Str Str Str Str NameLoad Dict NameLoad Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Assign NameStore Call NameLoad keyword ListLoad NameLoad NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list Call NameLoad NameLoad NameLoad If CompareEq NameLoad Str body ImportFrom alias Expr Call NameLoad NameLoad keyword NameLoad
N/A N/A 
    :codeauthor: :email:`Jayesh Kariya <jayeshk@saltstack.com>`
 __future__ absolute_import salttesting skipIf TestCase salttesting.mock NO_MOCK NO_MOCK_REASON MagicMock patch salttesting.helpers ensure_in_syspath N/A N/A ensure_in_syspath ../../ salt.states rbenv N/A N/A rbenv __opts__ N/A N/A N/A rbenv __salt__ N/A RbenvTestCase N/A TestCase N/A N/A 
    Test cases for salt.states.rbenv
     test_installed N/A N/A self N/A N/A N/A 
        Test to verify that the specified ruby is installed with rbenv.
         N/A name rbenv-deps N/A ret N/A name changes result comment name N/A True N/A mock_t N/A MagicMock side_effect N/A False True True N/A mock_f N/A MagicMock return_value False N/A mock_def N/A MagicMock return_value 2.7 N/A mock_ver N/A MagicMock return_value N/A 2.7 N/A N/A N/A patch dict N/A rbenv __salt__ N/A rbenv.is_installed rbenv.install rbenv.default rbenv.versions rbenv.install_ruby mock_f mock_t mock_def mock_ver mock_t N/A N/A N/A N/A patch dict N/A rbenv __opts__ N/A test True N/A N/A comt Ruby rbenv-deps is set to be installed N/A N/A N/A ret update N/A comment result comt None N/A N/A N/A self assertDictEqual N/A N/A rbenv installed name ret N/A N/A N/A patch dict N/A rbenv __opts__ N/A test False N/A N/A comt Rbenv failed to install N/A N/A N/A ret update N/A comment result comt False N/A N/A N/A self assertDictEqual N/A N/A rbenv installed name ret N/A comt Successfully installed ruby N/A N/A N/A ret update N/A comment result default changes comt True False N/A name Installed N/A N/A N/A self assertDictEqual N/A N/A rbenv installed name ret N/A test_absent N/A N/A self N/A N/A N/A 
        Test to verify that the specified ruby is not installed with rbenv.
         N/A name myqueue N/A ret N/A name changes result comment name N/A True N/A mock N/A MagicMock side_effect N/A False True N/A mock_def N/A MagicMock return_value 2.7 N/A mock_ver N/A MagicMock return_value N/A 2.7 N/A N/A N/A patch dict N/A rbenv __salt__ N/A rbenv.is_installed rbenv.default rbenv.versions mock mock_def mock_ver N/A N/A N/A N/A patch dict N/A rbenv __opts__ N/A test True N/A N/A comt Ruby myqueue is set to be uninstalled N/A N/A N/A ret update N/A comment result comt None N/A N/A N/A self assertDictEqual N/A N/A rbenv absent name ret N/A N/A N/A patch dict N/A rbenv __opts__ N/A test False N/A N/A comt Rbenv not installed, myqueue not either N/A N/A N/A ret update N/A comment result comt True N/A N/A N/A self assertDictEqual N/A N/A rbenv absent name ret N/A comt Ruby myqueue is already absent N/A N/A N/A ret update N/A comment result comt True N/A N/A N/A self assertDictEqual N/A N/A rbenv absent name ret N/A test_install_rbenv N/A N/A self N/A N/A N/A 
        Test to install rbenv if not installed.
         N/A name myqueue N/A ret N/A name changes result comment name N/A True N/A N/A N/A patch dict N/A rbenv __opts__ N/A test True N/A N/A comt Rbenv is set to be installed N/A N/A N/A ret update N/A comment result comt None N/A N/A N/A self assertDictEqual N/A N/A rbenv install_rbenv name ret N/A N/A N/A patch dict N/A rbenv __opts__ N/A test False N/A N/A mock N/A MagicMock side_effect N/A False True N/A N/A N/A patch dict N/A rbenv __salt__ N/A rbenv.is_installed rbenv.install mock mock N/A N/A comt Rbenv installed N/A N/A N/A ret update N/A comment result comt True N/A N/A N/A self assertDictEqual N/A N/A rbenv install_rbenv name ret N/A N/A N/A skipIf NO_MOCK NO_MOCK_REASON N/A N/A __name__ __main__ N/A integration run_tests N/A N/A run_tests RbenvTestCase needs_daemon False