[Zodb-checkins] CVS: Packages/ZConfig/tests - test_datatypes.py:1.5

Fred L. Drake, Jr. fred@zope.com
Wed, 15 Jan 2003 10:02:53 -0500


Update of /cvs-repository/Packages/ZConfig/tests
In directory cvs.zope.org:/tmp/cvs-serv16613/tests

Modified Files:
	test_datatypes.py 
Log Message:
- tighten up the regular expression for hostnames
- convert hostnames to lower case


=== Packages/ZConfig/tests/test_datatypes.py 1.4 => 1.5 ===
--- Packages/ZConfig/tests/test_datatypes.py:1.4	Tue Jan  7 18:09:19 2003
+++ Packages/ZConfig/tests/test_datatypes.py	Wed Jan 15 10:02:20 2003
@@ -202,6 +202,9 @@
         eq(convert('hostname'),          'hostname')
         eq(convert('hostname.com'),      'hostname.com')
         eq(convert('www.hostname.com'),  'www.hostname.com')
+        eq(convert('HOSTNAME'),          'hostname')
+        eq(convert('HOSTNAME.COM'),      'hostname.com')
+        eq(convert('WWW.HOSTNAME.COM'),  'www.hostname.com')
         eq(convert('127.0.0.1'),         '127.0.0.1')
         raises(ValueError, convert,  '1hostnamewithleadingnumeric')
         raises(ValueError, convert,  '255.255')