Module Expr Str ImportFrom alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias alias Expr Call NameLoad Str Import alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam defaults Num body Expr Str Return BinOpAdd Str Call AttributeLoad Str attr GeneratorExp Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr comprehension NameStore Call NameLoad NameLoad decorator_list Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad Str If CompareNotIn SubscriptLoad NameLoad Index Str Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str TryExcept body Expr Call AttributeLoad NameLoad attr Str ListLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str ListLoad NameLoad Raise decorator_list NameLoad Call NameLoad CompareNotEq Call AttributeLoad NameLoad attr Num Str NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIsNot Call AttributeLoad NameLoad attr Str ListLoad NameLoad Num NameLoad body Expr Call AttributeLoad NameLoad attr Str ListLoad NameLoad Expr Call AttributeLoad NameLoad attr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Raise decorator_list NameLoad Call NameLoad CompareNotEq Call AttributeLoad NameLoad attr Num Str NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIsNot Call AttributeLoad NameLoad attr Str ListLoad NameLoad Num NameLoad body Expr Call AttributeLoad NameLoad attr Str ListLoad NameLoad Expr Call AttributeLoad NameLoad attr Str TryExcept body Expr Call AttributeLoad NameLoad attr Str ListLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Num handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str ListLoad NameLoad Raise decorator_list NameLoad Call NameLoad CompareNotEq Call AttributeLoad NameLoad attr Num Str NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIsNot Call AttributeLoad NameLoad attr Str ListLoad NameLoad Num NameLoad body Expr Call AttributeLoad NameLoad attr Str ListLoad NameLoad Expr Call AttributeLoad NameLoad attr Str TryExcept body Expr Call AttributeLoad NameLoad attr Str ListLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str ListLoad NameLoad Raise decorator_list NameLoad Call NameLoad CompareNotEq Call AttributeLoad NameLoad attr Num Str NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If BoolOpAnd Call AttributeLoad NameLoad attr Str ListLoad NameLoad Num CompareIsNot Call AttributeLoad NameLoad attr Str ListLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str ListLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str decorator_list NameLoad Call NameLoad CompareNotEq Call AttributeLoad NameLoad attr Num Str NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If BoolOpAnd Call AttributeLoad NameLoad attr Str ListLoad NameLoad Num CompareIsNot Call AttributeLoad NameLoad attr Str ListLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str ListLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad SubscriptLoad NameLoad Index Str decorator_list NameLoad Call NameLoad CompareNotEq Call AttributeLoad NameLoad attr Num Str NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If BoolOpAnd Call AttributeLoad NameLoad attr Str ListLoad NameLoad Num CompareIsNot Call AttributeLoad NameLoad attr Str ListLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str ListLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad decorator_list NameLoad Call NameLoad CompareNotEq Call AttributeLoad NameLoad attr Num Str NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str ListLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str ListLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Str ListLoad NameLoad decorator_list NameLoad Call NameLoad CompareNotEq Call AttributeLoad NameLoad attr Num Str NameLoad decorator_list If CompareEq NameLoad Str body ImportFrom alias Expr Call NameLoad NameLoad
N/A N/A 
    :codeauthor: :email:`Nicole Thomas <nicole@saltstack.com>`
 __future__ absolute_import N/A os N/A random N/A string salttesting skipIf salttesting.helpers destructiveTest ensure_in_syspath requires_system_grains N/A N/A ensure_in_syspath ../../ N/A integration salt.exceptions CommandExecutionError salt.ext.six.moves range __random_string N/A N/A size N/A 6 N/A N/A 
    Generates a random username
     N/A N/A RS- N/A N/A join N/A N/A N/A random choice N/A N/A string ascii_uppercase N/A string digits N/A x N/A range size N/A N/A ADD_GROUP N/A __random_string N/A DEL_GROUP N/A __random_string N/A CHANGE_GROUP N/A __random_string N/A ADD_USER N/A __random_string N/A REP_USER_GROUP N/A __random_string MacGroupModuleTest N/A N/A integration ModuleCase N/A N/A 
    Integration tests for the mac_group module
     setUp N/A N/A self N/A N/A N/A 
        Sets up test requirements
         N/A os_grain N/A N/A self run_function grains.item N/A kernel N/A N/A N/A os_grain N/A kernel Darwin N/A N/A N/A N/A self skipTest N/A N/A Test not applicable to '{kernel}' kernel format os_grain N/A test_mac_group_add N/A N/A self grains N/A None N/A N/A 
        Tests the add group function
         N/A N/A N/A N/A N/A self run_function group.add N/A ADD_GROUP 3456 N/A group_info N/A N/A self run_function group.info N/A ADD_GROUP N/A N/A N/A self assertEqual N/A group_info N/A name ADD_GROUP N/A N/A N/A CommandExecutionError N/A N/A N/A N/A self run_function group.delete N/A ADD_GROUP N/A N/A destructiveTest N/A skipIf N/A N/A N/A os geteuid 0 You must be logged in as root to run this test requires_system_grains test_mac_group_delete N/A N/A self grains N/A None N/A N/A 
        Tests the delete group function
         N/A N/A N/A N/A self run_function group.add N/A DEL_GROUP 4567 True N/A N/A N/A N/A self run_function group.delete N/A DEL_GROUP N/A N/A N/A self skipTest Failed to create a group to delete N/A N/A N/A ret N/A N/A self run_function group.delete N/A DEL_GROUP N/A N/A N/A self assertTrue ret N/A N/A N/A CommandExecutionError N/A N/A N/A destructiveTest N/A skipIf N/A N/A N/A os geteuid 0 You must be logged in as root to run this test requires_system_grains test_mac_group_chgid N/A N/A self grains N/A None N/A N/A 
        Tests changing the group id
         N/A N/A N/A N/A self run_function group.add N/A CHANGE_GROUP 5678 True N/A N/A N/A N/A self run_function group.delete N/A CHANGE_GROUP N/A N/A N/A self skipTest Failed to create a group to manipulate N/A N/A N/A N/A N/A self run_function group.chgid N/A CHANGE_GROUP 6789 N/A group_info N/A N/A self run_function group.info N/A CHANGE_GROUP N/A N/A N/A self assertEqual N/A group_info N/A gid 6789 N/A N/A N/A AssertionError N/A N/A N/A N/A self run_function group.delete N/A CHANGE_GROUP N/A N/A destructiveTest N/A skipIf N/A N/A N/A os getuid 0 You must be logged in as root to run this test requires_system_grains test_mac_adduser N/A N/A self grains N/A None N/A N/A 
        Tests adding user to the group
         N/A N/A N/A N/A self run_function group.add N/A ADD_GROUP 5678 True N/A N/A N/A N/A self run_function group.delete N/A ADD_GROUP N/A N/A N/A self skipTest Failed to create a group to manipulate N/A N/A N/A N/A N/A self run_function group.adduser N/A ADD_GROUP ADD_USER N/A group_info N/A N/A self run_function group.info N/A ADD_GROUP N/A N/A N/A self assertEqual ADD_USER N/A N/A join N/A group_info N/A members N/A N/A N/A AssertionError N/A N/A N/A N/A self run_function group.delete N/A ADD_GROUP N/A N/A destructiveTest N/A skipIf N/A N/A N/A os getuid 0 You must be logged in as root to run this test requires_system_grains test_mac_deluser N/A N/A self grains N/A None N/A N/A 
        Test deleting user from a group
         N/A N/A N/A N/A self run_function group.add N/A ADD_GROUP 5678 N/A N/A N/A self run_function group.adduser N/A ADD_GROUP ADD_USER True N/A N/A N/A N/A self run_function group.delete N/A ADD_GROUP N/A N/A N/A self skipTest Failed to create a group to manipulate N/A delusr N/A N/A self run_function group.deluser N/A ADD_GROUP ADD_USER N/A N/A N/A self assertTrue delusr N/A group_info N/A N/A self run_function group.info N/A ADD_GROUP N/A N/A N/A self assertNotIn ADD_USER N/A N/A join N/A group_info N/A members N/A destructiveTest N/A skipIf N/A N/A N/A os getuid 0 You must be logged in as root to run this test requires_system_grains test_mac_members N/A N/A self grains N/A None N/A N/A 
        Test replacing members of a group
         N/A N/A N/A N/A self run_function group.add N/A ADD_GROUP 5678 N/A N/A N/A self run_function group.adduser N/A ADD_GROUP ADD_USER True N/A N/A N/A N/A self run_function group.delete N/A ADD_GROUP N/A N/A N/A self skipTest N/A N/A Failed to create the {0} group or add user {1} to group to manipulate format ADD_GROUP ADD_USER N/A rep_group_mem N/A N/A self run_function group.members N/A ADD_GROUP REP_USER_GROUP N/A N/A N/A self assertTrue rep_group_mem N/A group_info N/A N/A self run_function group.info N/A ADD_GROUP N/A N/A N/A self assertIn REP_USER_GROUP N/A str N/A group_info N/A members N/A N/A N/A self assertNotIn ADD_USER N/A str N/A group_info N/A members N/A destructiveTest N/A skipIf N/A N/A N/A os getuid 0 You must be logged in as root to run this test requires_system_grains test_mac_getent N/A N/A self grains N/A None N/A N/A 
        Test returning info on all groups
         N/A N/A N/A N/A self run_function group.add N/A ADD_GROUP 5678 N/A N/A N/A self run_function group.adduser N/A ADD_GROUP ADD_USER True N/A N/A N/A N/A self run_function group.delete N/A ADD_GROUP N/A N/A N/A self skipTest N/A N/A Failed to create the {0} group or add user {1} to group to manipulate format ADD_GROUP ADD_USER N/A getinfo N/A N/A self run_function group.getent N/A N/A N/A self assertTrue getinfo N/A N/A N/A self assertIn ADD_GROUP N/A str getinfo N/A N/A N/A self assertIn ADD_USER N/A str getinfo N/A destructiveTest N/A skipIf N/A N/A N/A os getuid 0 You must be logged in as root to run this test requires_system_grains tearDown N/A N/A self grains N/A None N/A N/A 
        Clean up after tests
         N/A add_info N/A N/A self run_function group.info N/A ADD_GROUP N/A add_info N/A N/A N/A N/A self run_function group.delete N/A ADD_GROUP N/A del_info N/A N/A self run_function group.info N/A DEL_GROUP N/A del_info N/A N/A N/A N/A self run_function group.delete N/A DEL_GROUP N/A change_info N/A N/A self run_function group.info N/A CHANGE_GROUP N/A change_info N/A N/A N/A N/A self run_function group.delete N/A CHANGE_GROUP N/A destructiveTest N/A skipIf N/A N/A N/A os geteuid 0 You must be logged in as root to run this test requires_system_grains N/A N/A N/A __name__ __main__ N/A integration run_tests N/A N/A run_tests MacGroupModuleTest