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 Dict With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad 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 AttributeLoad Str attr NameLoad 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 Assign NameStore Call NameLoad keyword ListLoad NameLoad NameLoad Assign NameStore Call NameLoad keyword ListLoad NameLoad NameLoad NameLoad NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad body With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad 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 AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad NameLoad Dict NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad NameLoad Dict Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad 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 postgres_extension N/A N/A postgres_extension __opts__ N/A N/A N/A postgres_extension __salt__ N/A PostgresExtensionTestCase N/A TestCase N/A N/A 
    Test cases for salt.states.postgres_extension
     test_present N/A N/A self N/A N/A N/A 
        Test to ensure that the named extension is present
        with the specified privileges.
         N/A name frank N/A ret N/A name changes result comment name N/A False N/A mock N/A MagicMock return_value N/A N/A N/A N/A patch dict N/A postgres_extension __salt__ N/A postgres.create_metadata mock N/A N/A N/A N/A patch dict N/A postgres_extension __opts__ N/A test True N/A N/A comt N/A N/A Extension {0} is set to be created format name 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 postgres_extension present name ret N/A N/A N/A patch dict N/A postgres_extension __opts__ N/A test False N/A N/A comt N/A N/A Extension {0} is already present format name 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 postgres_extension present name ret N/A test_absent N/A N/A self N/A N/A N/A 
        Test to ensure that the named extension is absent.
         N/A name frank N/A ret N/A name changes result comment name N/A False N/A mock_t N/A MagicMock side_effect N/A True False N/A mock N/A MagicMock side_effect N/A True True True False N/A N/A N/A patch dict N/A postgres_extension __salt__ N/A postgres.is_installed_extension postgres.drop_extension mock mock_t N/A N/A N/A N/A patch dict N/A postgres_extension __opts__ N/A test True N/A N/A comt N/A N/A Extension {0} is set to be removed format name 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 postgres_extension absent name ret N/A N/A N/A patch dict N/A postgres_extension __opts__ N/A test False N/A N/A comt N/A N/A Extension {0} has been removed format name N/A N/A N/A ret update N/A comment result changes comt True N/A name Absent N/A N/A N/A self assertDictEqual N/A N/A postgres_extension absent name ret N/A comt N/A N/A Extension {0} failed to be removed format name N/A N/A N/A ret update N/A comment result changes comt False N/A N/A N/A N/A self assertDictEqual N/A N/A postgres_extension absent name ret N/A comt N/A N/A Extension {0} is not present, so it cannot be removed format name 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 postgres_extension absent 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 PostgresExtensionTestCase needs_daemon False