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