blob: 458ed38d3cb03c65de1217670e4251576c57c88d [file] [log] [blame]
#! /usr/bin/env python
"""Test script for the grp module
Roger E. Masse
"""
import grp
from test_support import verbose
groups = grp.getgrall()
if verbose:
print 'Groups:'
for group in groups:
print group
group = grp.getgrgid(groups[0][2])
if verbose:
print 'Group Entry for GID %d: %s' % (groups[0][2], group)
group = grp.getgrnam(groups[0][0])
if verbose:
print 'Group Entry for group %s: %s' % (groups[0][0], group)