Exemple #1
0
def test_format_info():
    """
    Tests the formatting of returned group information
    """
    data = grp.struct_group(("wheel", "*", 0, ["root"]))
    ret = {"passwd": "*", "gid": 0, "name": "wheel", "members": ["root"]}
    assert mac_group._format_info(data) == ret
Exemple #2
0
 def test_format_info(self):
     '''
     Tests the formatting of returned group information
     '''
     data = grp.struct_group(('wheel', '*', 0, ['root']))
     ret = {'passwd': '*', 'gid': 0, 'name': 'wheel', 'members': ['root']}
     self.assertEqual(mac_group._format_info(data), ret)
Exemple #3
0
 def test_format_info(self):
     '''
     Tests the formatting of returned group information
     '''
     data = grp.struct_group(('wheel', '*', 0, ['root']))
     ret = {'passwd': '*', 'gid': 0, 'name': 'wheel', 'members': ['root']}
     self.assertEqual(mac_group._format_info(data), ret)