Module Expr Str ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias ImportFrom alias Expr Call NameLoad Str ImportFrom alias TryExcept body Import alias Import alias Import alias Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Str NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Dict Str Str Str Str ListLoad Str NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Dict Str Str Str Str ListLoad Str NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Dict Str Str Str Str NameLoad ListLoad Str NameLoad Str With Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str With Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str With Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Dict Str Str Str Str Dict Str ListLoad Str Str Str NameLoad With Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Num body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str Dict Str Str Str Str Dict Str ListLoad Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Dict Str ListLoad Str Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Str Assign NameStore Dict Str Str Str Str Str NameLoad NameLoad Dict Str Str ListLoad ListLoad With Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str NameLoad With Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str Num body Assign NameStore ListLoad Str Str Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str NameLoad With Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad body Assign NameStore ListLoad Str Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str NameLoad decorator_list decorator_list Call NameLoad UnaryOpNot NameLoad Str 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 TestCase skipIf salttesting.mock patch NO_MOCK NO_MOCK_REASON salttesting.helpers ensure_in_syspath N/A N/A ensure_in_syspath ../../ salt.modules win_groupadd N/A N/A N/A win32com N/A pythoncom N/A pywintypes N/A HAS_WIN_LIBS True N/A N/A N/A ImportError N/A N/A HAS_WIN_LIBS False N/A N/A win_groupadd __context__ N/A N/A N/A win_groupadd __opts__ N/A test False WinGroupTestCase N/A TestCase N/A N/A 
    Test cases for salt.modules.win_groupadd
     test_add N/A N/A self N/A N/A N/A 
        Test if it add the specified group
         N/A N/A N/A self assertDictEqual N/A N/A win_groupadd add foo N/A changes name result comment N/A foo None The group foo already exists. N/A test_delete N/A N/A self N/A N/A N/A 
        Test if it remove the specified group
         N/A N/A N/A self assertDictEqual N/A N/A win_groupadd delete foo N/A changes name result comment N/A foo None The group foo does not exists. N/A test_info N/A N/A self N/A N/A N/A 
        Test if it return information about a group.
         N/A N/A patch N/A N/A win_groupadd win32 client flag None N/A N/A N/A N/A self assertDictEqual N/A N/A win_groupadd info dc=salt N/A gid members passwd name None N/A dc=\user1 None WinNT://./dc=salt,group N/A N/A patch N/A N/A win_groupadd win32 client flag 1 N/A N/A N/A N/A self assertFalse N/A N/A win_groupadd info dc=salt N/A N/A patch N/A N/A win_groupadd win32 client flag 2 N/A N/A N/A N/A self assertFalse N/A N/A win_groupadd info dc=salt N/A test_getent N/A N/A self N/A N/A N/A 
        Test if it return info on all groups
         N/A N/A N/A patch dict N/A win_groupadd __context__ N/A group.getent True N/A N/A N/A N/A self assertTrue N/A N/A win_groupadd getent N/A test_adduser N/A N/A self N/A N/A N/A 
        Test if it add a user to a group
         N/A N/A patch N/A N/A win_groupadd win32 client flag None N/A N/A N/A N/A self assertDictEqual N/A N/A win_groupadd adduser dc=foo dc=\username N/A changes comment name result N/A Users Added N/A dc=\username dc=foo True N/A N/A patch N/A N/A win_groupadd win32 client flag 1 N/A N/A comt Failed to add dc=\username to group dc=foo.  C N/A N/A N/A self assertDictEqual N/A N/A win_groupadd adduser dc=foo dc=\username N/A changes name comment result N/A Users Added N/A dc=foo comt False N/A test_deluser N/A N/A self N/A N/A N/A 
        Test if it remove a user to a group
         N/A ret N/A changes comment name result N/A Users Removed N/A User dc=\username is not a member of dc=foo dc=foo None N/A N/A N/A self assertDictEqual N/A N/A win_groupadd deluser dc=foo dc=\username ret N/A test_members N/A N/A self N/A N/A N/A 
        Test if it remove a user to a group
         N/A comment N/A Failure accessing group dc=foo.  C N/A ret N/A name result comment changes dc=foo False comment N/A Users Added Users Removed N/A N/A N/A N/A patch N/A N/A win_groupadd win32 client flag 2 N/A N/A N/A N/A self assertDictEqual N/A N/A win_groupadd members dc=foo dc=\user1,dc=\user2,dc=\user3 ret N/A N/A patch N/A N/A win_groupadd win32 client flag 1 N/A N/A comment N/A Failed to add dc=\user2 to dc=foo.  C Failed to remove dc=\user1 from dc=foo.  C N/A N/A N/A ret update N/A comment result comment False N/A N/A N/A self assertDictEqual N/A N/A win_groupadd members dc=foo dc=\user2 ret N/A N/A patch N/A N/A win_groupadd win32 client flag None N/A N/A comment N/A dc=foo membership is correct N/A N/A N/A ret update N/A comment result comment None N/A N/A N/A self assertDictEqual N/A N/A win_groupadd members dc=foo dc=\user1 ret N/A N/A N/A skipIf N/A HAS_WIN_LIBS win_groupadd unit tests can only be run if win32com, pythoncom, and pywintypes are installed 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 WinGroupTestCase needs_daemon False