Module Expr Str ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias alias 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 Dict Str Str Str Str Str Dict NameLoad Dict Expr Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str keyword ListLoad Str keyword ListLoad Str NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str Assign NameStore Call NameLoad keyword ListLoad Dict Str Str Str Str NameLoad NameLoad NameLoad With Call AttributeLoad NameLoad attr NameLoad Str NameLoad body With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Assign NameStore Call NameLoad keyword ListLoad Dict Str Str Num Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Num NameLoad Assign NameStore Call NameLoad keyword NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Expr Call AttributeLoad NameLoad attr Dict Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Str Dict NameLoad Dict Assign NameStore Call NameLoad keyword ListLoad NameLoad NameLoad NameLoad NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str 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 NameLoad body Expr Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad Dict Str Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str Str Dict NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr 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:`Rahul Handay <rahulha@saltstack.com>`
 __future__ absolute_import salttesting TestCase skipIf salttesting.helpers ensure_in_syspath salttesting.mock MagicMock patch NO_MOCK NO_MOCK_REASON N/A N/A ensure_in_syspath ../../ salt.states group N/A N/A group __salt__ N/A N/A N/A group __opts__ N/A GroupTestCase N/A TestCase N/A N/A 
        Validate the group state
     test_present N/A N/A self N/A N/A N/A 
            Test to ensure that a group is present
         N/A ret N/A name changes result comment salt N/A True N/A N/A N/A N/A ret update N/A comment result Error: Conflicting options "members" with "addusers" and/or "delusers" can not be used together.  None N/A N/A N/A self assertDictEqual N/A N/A group present salt delusers True members True ret N/A N/A N/A ret update N/A comment Error. Same user(s) can not be added and deleted simultaneously N/A N/A N/A self assertDictEqual N/A N/A group present salt addusers N/A a delusers N/A a ret N/A N/A N/A ret update N/A comment The following group attributes are set to be changed:
key1: value1
key0: value0
 N/A mock N/A MagicMock side_effect N/A N/A key0 key1 value0 value1 False False False N/A N/A N/A patch object group _changes mock N/A N/A N/A N/A patch dict N/A group __opts__ N/A test True N/A N/A N/A N/A self assertDictEqual N/A N/A group present salt ret N/A N/A N/A ret update N/A comment Group salt set to be added N/A N/A N/A self assertDictEqual N/A N/A group present salt ret N/A N/A N/A patch dict N/A group __opts__ N/A test False N/A N/A mock N/A MagicMock return_value N/A N/A gid name 1 stack N/A N/A N/A patch dict N/A group __salt__ N/A group.getent mock N/A N/A N/A N/A ret update N/A result comment False Group salt is not present but gid 1 is already taken by group stack N/A N/A N/A self assertDictEqual N/A N/A group present salt 1 ret N/A mock N/A MagicMock return_value False N/A N/A N/A patch dict N/A group __salt__ N/A group.add mock N/A N/A N/A N/A ret update N/A comment Failed to create new group salt N/A N/A N/A self assertDictEqual N/A N/A group present salt ret N/A test_absent N/A N/A self N/A N/A N/A 
            Test to ensure that the named group is absent
         N/A ret N/A name changes result comment salt N/A True N/A N/A mock N/A MagicMock side_effect N/A True True True False N/A N/A N/A patch dict N/A group __salt__ N/A group.info mock N/A N/A N/A N/A patch dict N/A group __opts__ N/A test True N/A N/A N/A N/A ret update N/A result comment None Group salt is set for removal N/A N/A N/A self assertDictEqual N/A N/A group absent salt ret N/A N/A N/A patch dict N/A group __opts__ N/A test False N/A N/A mock N/A MagicMock side_effect N/A True False N/A N/A N/A patch dict N/A group __salt__ N/A group.delete mock N/A N/A N/A N/A ret update N/A result changes comment True N/A salt Removed group salt N/A N/A N/A self assertDictEqual N/A N/A group absent salt ret N/A N/A N/A ret update N/A changes result comment N/A False Failed to remove group salt N/A N/A N/A self assertDictEqual N/A N/A group absent salt ret N/A N/A N/A ret update N/A result comment True Group not present N/A N/A N/A self assertDictEqual N/A N/A group absent 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 GroupTestCase needs_daemon False