From: Crístian Viana <vianac(a)linux.vnet.ibm.com>
In the current mockmodel implementation, the "environment" returns None
as the group list for all system users.
In order to make the mockmodel environment more dynamic, every user will
belong to the same list of groups - instead of none.
Signed-off-by: Crístian Viana <vianac(a)linux.vnet.ibm.com>
---
tests/utils.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/utils.py b/tests/utils.py
index 4853b7a..12961cc 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -155,7 +155,7 @@ def patch_auth(sudo=True):
"""
def _get_groups(self):
- return None
+ return [ 'groupA', 'groupB', 'wheel' ]
def _has_sudo(self, result):
result.value = sudo
--
1.9.3