Merge pull request #42182 from twangboy/win_unit_test_useradd

Fix `unit.modules.test_useradd` for Windows
This commit is contained in:
Nicole Thomas 2017-07-19 09:55:32 -06:00 committed by GitHub
commit 07593675e2

View file

@ -72,6 +72,7 @@ class UserAddTestCase(TestCase, LoaderModuleMockMixin):
# 'getent' function tests: 2
@skipIf(HAS_PWD is False, 'The pwd module is not available')
def test_getent(self):
'''
Test if user.getent already have a value
@ -359,6 +360,7 @@ class UserAddTestCase(TestCase, LoaderModuleMockMixin):
# 'list_users' function tests: 1
@skipIf(HAS_PWD is False, 'The pwd module is not available')
def test_list_users(self):
'''
Test if it returns a list of all users