summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Karl Ramm <kcr@1ts.org>2009-08-01 19:55:14 +0000
committerGravatar Karl Ramm <kcr@1ts.org>2009-08-01 19:55:14 +0000
commit88a99453969432dee640a2cba59e47798e5cd7b9 (patch)
tree3a231d262bee3aca403f02e241f6479db01935f7
parente4ca408b86f1c4846f46cb5de7af89dcc67fcc78 (diff)
Slightly more robust guess at what the noauth ZExpandRealm does
-rw-r--r--lib/zephyr_tests.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/zephyr_tests.txt b/lib/zephyr_tests.txt
index 31a5da5..3085a5d 100644
--- a/lib/zephyr_tests.txt
+++ b/lib/zephyr_tests.txt
@@ -14,7 +14,7 @@ comprehensible.)
Generic library setup that should be moved into zephyr_tests.py:
- >>> import os
+ >>> import os, socket
>>> import zephyr_tests
>>> buildpath = zephyr_tests.find_buildpath()
>>> libzephyr_path = zephyr_tests.find_libzephyr()
@@ -108,7 +108,7 @@ Trivial test of ZExpandRealm, using terribly well known hostnames:
>>> assert _z.ZExpandRealm("") == ""
>>> if Zauthtype: assert _z.ZExpandRealm("localhost") == ""
>>> if Zauthtype: assert _z.ZExpandRealm("bitsy.mit.edu") == "ATHENA.MIT.EDU"
- >>> if not Zauthtype: assert _z.ZExpandRealm("localhost") == "LOCALHOST"
+ >>> if not Zauthtype: assert _z.ZExpandRealm("localhost") == socket.getfqdn("localhost").upper()
>>> if not Zauthtype: assert _z.ZExpandRealm("bitsy.mit.edu") == "BITSY.MIT.EDU"
ZGetCharsetString is a utility function for clients that need to know the