[Zope3-checkins] CVS: Zope/lib/python/ZConfig/tests - test_datatypes.py:1.6.36.1

Fred Drake cvs-admin at zope.org
Fri Oct 31 11:44:11 EST 2003


Update of /cvs-repository/Zope/lib/python/ZConfig/tests
In directory cvs.zope.org:/tmp/cvs-serv1827/lib/python/ZConfig/tests

Modified Files:
      Tag: Zope-2_7-branch
	test_datatypes.py 
Log Message:
Be more strict about what constitutes a valid host name.


=== Zope/lib/python/ZConfig/tests/test_datatypes.py 1.6 => 1.6.36.1 ===
--- Zope/lib/python/ZConfig/tests/test_datatypes.py:1.6	Mon Mar 24 15:42:08 2003
+++ Zope/lib/python/ZConfig/tests/test_datatypes.py	Fri Oct 31 11:44:10 2003
@@ -111,6 +111,7 @@
         eq(convert(":80"),                 ("", 80))
         eq(convert("80"),                  ("", 80))
         eq(convert("host.EXAMPLE.com"),    ("host.example.com", None))
+        self.assertRaises(ValueError, convert, "40 # foo")
 
     def test_datatype_integer(self):
         convert = self.types.get("integer")




More information about the Zope3-Checkins mailing list