From 88a99453969432dee640a2cba59e47798e5cd7b9 Mon Sep 17 00:00:00 2001 From: Karl Ramm Date: Sat, 1 Aug 2009 19:55:14 +0000 Subject: Slightly more robust guess at what the noauth ZExpandRealm does --- lib/zephyr_tests.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3