Allow for variations in distros in group test

This commit is contained in:
Mike Place 2015-01-06 22:04:19 -07:00
parent b4a0c2b37a
commit 2474cdfde0

View File

@ -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):