mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Allow for variations in distros in group test
This commit is contained in:
parent
b4a0c2b37a
commit
2474cdfde0
@ -62,10 +62,9 @@ class PwGroupTestCase(TestCase):
|
||||
'''
|
||||
mock = MagicMock(return_value={'group.getent': 1})
|
||||
with patch.dict(pw_group.__context__, mock):
|
||||
self.assertEqual(pw_group.getent()[0], {'passwd': 'x',
|
||||
'gid': 0,
|
||||
'name': 'root',
|
||||
'members': []})
|
||||
self.assertDictContainsSubset({'passwd': 'x',
|
||||
'gid': 0,
|
||||
'name': 'root'}, pw_group.getent()[0])
|
||||
|
||||
mock = MagicMock(return_value='A')
|
||||
with patch.object(pw_group, 'info', mock):
|
||||
|
Loading…
Reference in New Issue
Block a user