[Zope-CVS] CVS: Packages/zpkgtools/zpkgtools/tests - test_config.py:1.3

Fred L. Drake, Jr. fred at zope.com
Thu Mar 11 09:55:52 EST 2004


Update of /cvs-repository/Packages/zpkgtools/zpkgtools/tests
In directory cvs.zope.org:/tmp/cvs-serv27620/tests

Modified Files:
	test_config.py 
Log Message:
- use the new ZConfig-lite parser
- tests changed to reflect change in what exceptions get raised


=== Packages/zpkgtools/zpkgtools/tests/test_config.py 1.2 => 1.3 ===
--- Packages/zpkgtools/zpkgtools/tests/test_config.py:1.2	Wed Mar 10 21:14:28 2004
+++ Packages/zpkgtools/zpkgtools/tests/test_config.py	Thu Mar 11 09:55:51 2004
@@ -16,6 +16,7 @@
 import os
 import unittest
 
+from zpkgtools import cfgparser
 from zpkgtools import config
 
 
@@ -41,11 +42,13 @@
     def test_constructor_bad_config_setting(self):
         # unknown option:
         path = os.path.join(here, "zpkg-error-1.conf")
-        self.assertRaises(ValueError, config.Configuration, path)
+        self.assertRaises(cfgparser.ConfigurationError,
+                          config.Configuration, path)
 
         # repository-map without path
         path = os.path.join(here, "zpkg-error-2.conf")
-        self.assertRaises(ValueError, config.Configuration, path)
+        self.assertRaises(cfgparser.ConfigurationError,
+                          config.Configuration, path)
 
     def test_constructor_no_such_file(self):
         path = os.path.join(here, "no-such-file")




More information about the Zope-CVS mailing list