[Zope-Checkins] CVS: Packages/ZConfig/tests - testConfig.py:1.4

Fred L. Drake, Jr. fdrake@acm.org
Tue, 15 Oct 2002 14:28:30 -0400


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

Modified Files:
	testConfig.py 
Log Message:
Since the meaning of fragment identifiers is not specified, do not allow
them.  This does not preclude defining fragment identifiers at a later time,
and is only intended to make it clear that they are not currently supported.


=== Packages/ZConfig/tests/testConfig.py 1.3 => 1.4 ===
--- Packages/ZConfig/tests/testConfig.py:1.3	Sun Oct 13 23:08:06 2002
+++ Packages/ZConfig/tests/testConfig.py	Tue Oct 15 14:28:29 2002
@@ -22,7 +22,7 @@
 
 import ZConfig
 from ZConfig.Context import Context
-from ZConfig.Common import ConfigurationTypeError
+from ZConfig.Common import ConfigurationError, ConfigurationTypeError
 
 warnings.filterwarnings("ignore", r".*\bmktemp\b.*",
                         RuntimeWarning, __name__)
@@ -189,6 +189,10 @@
         self.assertEqual(conf.get("var1"), "abc")
         self.assertEqual(conf.get("var2"), "value2")
         self.assertEqual(conf.get("var3"), "value3")
+
+    def test_fragment_ident_disallowed(self):
+        self.assertRaises(ConfigurationError,
+                          self.load, "simplesections.conf#another")
 
     def test_load_from_abspath(self):
         fn = self.write_tempfile()