Module Expr Str ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias Expr Call NameLoad Str ImportFrom alias Import alias Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict ClassDef bases NameLoad body Expr Str Assign NameStore Str decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Dict Str Str decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict Str Call NameLoad decorator_list decorator_list Assign AttributeStore NameLoad attr Call NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore ListLoad Dict Str Str Assign NameStore Dict Str Str Str Str NameLoad NameLoad Str Dict Assign NameStore Call NameLoad keyword 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 Assign NameStore Call NameLoad keyword Dict Assign NameStore Call NameLoad keyword Dict Str Dict Str 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 Assign NameStore Str Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call NameLoad keyword Dict Str Dict Str Str 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 Assign NameStore Call NameLoad keyword Dict Str Dict Str Str Assign NameStore Call NameLoad keyword Dict Str Dict Str Str Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str Str Str 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 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 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 ListLoad Dict Str Str NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str NameLoad body With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr 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 Str Str NameLoad NameLoad Call NameLoad body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad ListLoad Dict Str Str 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 salt.exceptions SaltInvocationError N/A N/A ensure_in_syspath ../../ salt.states ports N/A os N/A N/A ports __salt__ N/A N/A N/A ports __opts__ N/A MockModule N/A object N/A N/A 
    Mock of __module__
     N/A __module__ A N/A MockContext N/A object N/A N/A 
    Mock of __context__
     N/A __context__ N/A ports.install_error salt N/A MockSys N/A object N/A N/A 
    Mock of sys
     __init__ N/A N/A self N/A N/A N/A N/A self modules N/A A N/A MockContext N/A N/A N/A N/A ports sys N/A MockSys PortsTestCase N/A TestCase N/A N/A 
    Test cases for salt.states.ports
     test_installed N/A N/A self N/A N/A N/A 
        Test to verify that the desired port is installed,
        and that it was compiled with the desired options.
         N/A name security/nmap N/A options N/A N/A IPV6 on N/A ret N/A name result comment changes name None N/A N/A mock N/A MagicMock side_effect SaltInvocationError N/A N/A N/A patch dict N/A ports __salt__ N/A ports.showconfig mock N/A N/A comt N/A N/A Unable to get configuration for {0}. Port name may be invalid, or ports tree may need to be updated. Error message:  format name 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 ports installed name ret N/A mock N/A MagicMock return_value N/A N/A mock_lst N/A MagicMock return_value N/A origin N/A origin name N/A N/A N/A patch dict N/A ports __salt__ N/A ports.showconfig pkg.list_pkgs mock mock_lst N/A N/A comt security/nmap is already 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 ports installed name ret N/A comt security/nmap does not have any build options, yet options were specified 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 ports installed name options ret N/A mock_dict N/A MagicMock return_value N/A origin N/A origin salt N/A N/A N/A patch dict N/A ports __salt__ N/A pkg.list_pkgs mock_dict N/A N/A N/A N/A patch dict N/A ports __opts__ N/A test True N/A N/A comt N/A N/A {0} will be installed 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 ports installed name ret N/A mock N/A MagicMock return_value N/A salt N/A salt salt N/A mock_dict N/A MagicMock return_value N/A origin N/A origin salt N/A mock_f N/A MagicMock return_value False N/A mock_t N/A MagicMock return_value True N/A N/A N/A patch dict N/A ports __salt__ N/A ports.showconfig pkg.list_pkgs ports.config ports.rmconfig mock mock_dict mock_f mock_t N/A N/A N/A N/A patch dict N/A ports __opts__ N/A test True N/A N/A comt The following options are not available for security/nmap: IPV6 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 ports installed name options ret N/A comt security/nmap will be installed with the default build options 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 ports installed name ret N/A N/A N/A patch dict N/A ports __opts__ N/A test False N/A N/A comt Unable to set options for security/nmap 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 ports installed name N/A N/A salt salt ret N/A N/A N/A patch object N/A os path isfile mock_t N/A N/A N/A N/A patch object N/A os path isdir mock_t N/A N/A comt Unable to clear options for security/nmap 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 ports installed name ret N/A N/A N/A patch dict N/A ports __salt__ N/A ports.config ports.install test.ping mock_t mock_t N/A MockModule N/A N/A comt Failed to install security/nmap. Error message:
salt N/A N/A N/A ret update N/A comment result changes comt False True N/A N/A N/A self assertDictEqual N/A N/A ports installed name N/A N/A salt salt 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 PortsTestCase needs_daemon False