summaryrefslogtreecommitdiff
path: root/sys/lib/python/test/test_nis.py
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@localhost>2011-05-04 05:41:33 +0000
committercinap_lenrek <cinap_lenrek@localhost>2011-05-04 05:41:33 +0000
commitb8436b026a90291ba26afa4f7a2700720b03339f (patch)
tree3098aede87640c80567ecb31022e0404a8b5ec75 /sys/lib/python/test/test_nis.py
parent6c1b42188259a6f1636cd15a9570b18af03e2dbb (diff)
remove python test cases
Diffstat (limited to 'sys/lib/python/test/test_nis.py')
-rw-r--r--sys/lib/python/test/test_nis.py39
1 files changed, 0 insertions, 39 deletions
diff --git a/sys/lib/python/test/test_nis.py b/sys/lib/python/test/test_nis.py
deleted file mode 100644
index 74ceeea91..000000000
--- a/sys/lib/python/test/test_nis.py
+++ /dev/null
@@ -1,39 +0,0 @@
-from test.test_support import verbose, TestFailed, TestSkipped
-import nis
-
-print 'nis.maps()'
-try:
- maps = nis.maps()
-except nis.error, msg:
- # NIS is probably not active, so this test isn't useful
- if verbose:
- raise TestFailed, msg
- # only do this if running under the regression suite
- raise TestSkipped, msg
-
-try:
- # On some systems, this map is only accessible to the
- # super user
- maps.remove("passwd.adjunct.byname")
-except ValueError:
- pass
-
-done = 0
-for nismap in maps:
- if verbose:
- print nismap
- mapping = nis.cat(nismap)
- for k, v in mapping.items():
- if verbose:
- print ' ', k, v
- if not k:
- continue
- if nis.match(k, nismap) != v:
- print "NIS match failed for key `%s' in map `%s'" % (k, nismap)
- else:
- # just test the one key, otherwise this test could take a
- # very long time
- done = 1
- break
- if done:
- break