[Zodb-checkins] CVS: Zope/lib/python/ZConfig/tests -
	test_datatypes.py:1.7
    Fred Drake 
    cvs-admin at zope.org
       
    Fri Oct 31 11:14:52 EST 2003
    
    
  
Update of /cvs-repository/Zope/lib/python/ZConfig/tests
In directory cvs.zope.org:/tmp/cvs-serv29509/tests
Modified Files:
	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.7 ===
--- 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:14:51 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 Zodb-checkins
mailing list