[zpkg] SVN: zpkgtools/trunk/zpkgtools/ fix bug in configuration schema, with test

Fred L. Drake, Jr. fdrake at gmail.com
Wed Sep 7 19:34:16 EDT 2005


Log message for revision 38373:
  fix bug in configuration schema, with test

Changed:
  U   zpkgtools/trunk/zpkgtools/config.xml
  U   zpkgtools/trunk/zpkgtools/tests/test_config.py

-=-
Modified: zpkgtools/trunk/zpkgtools/config.xml
===================================================================
--- zpkgtools/trunk/zpkgtools/config.xml	2005-09-07 23:33:34 UTC (rev 38372)
+++ zpkgtools/trunk/zpkgtools/config.xml	2005-09-07 23:34:16 UTC (rev 38373)
@@ -9,7 +9,7 @@
                >
     <key name="+"
          attribute="map"
-         type=".config.non_empty_string"
+         datatype=".config.non_empty_string"
          />
   </sectiontype>
 

Modified: zpkgtools/trunk/zpkgtools/tests/test_config.py
===================================================================
--- zpkgtools/trunk/zpkgtools/tests/test_config.py	2005-09-07 23:33:34 UTC (rev 38372)
+++ zpkgtools/trunk/zpkgtools/tests/test_config.py	2005-09-07 23:34:16 UTC (rev 38373)
@@ -147,6 +147,14 @@
             "  </resources>\n"
             "</resources>\n")
 
+    def test_embedded_resource_map_without_value(self):
+        self.assertRaises(
+            cfgparser.ConfigurationError,
+            self.load_text,
+            "<resources>\n"
+            "  pkg  \n"
+            "</resources>\n")
+
     def test_exclude_packages(self):
         cf = self.load_text(
             "<exclude>\n"



More information about the zpkg mailing list