from test
.test_support
import verbose
, TestFailed
, TestSkipped
# NIS is probably not active, so this test isn't useful
# only do this if running under the regression suite
mapping
= nis
.cat(nismap
)
for k
, v
in mapping
.items():
if nis
.match(k
, nismap
) != v
:
print "NIS match failed for key `%s' in map `%s'" % (k
, nismap
)
# just test the one key, otherwise this test could take a