[Checkins] SVN: zope.generations/trunk/src/zope/generations/ added test for subscriber.zcml, too

Michael Howitz mh at gocept.com
Sat Sep 18 05:43:35 EDT 2010


Log message for revision 116556:
  added test for subscriber.zcml, too
  

Changed:
  U   zope.generations/trunk/src/zope/generations/subscriber.zcml
  U   zope.generations/trunk/src/zope/generations/tests/test_zcml.py

-=-
Modified: zope.generations/trunk/src/zope/generations/subscriber.zcml
===================================================================
--- zope.generations/trunk/src/zope/generations/subscriber.zcml	2010-09-18 09:32:28 UTC (rev 116555)
+++ zope.generations/trunk/src/zope/generations/subscriber.zcml	2010-09-18 09:43:35 UTC (rev 116556)
@@ -1,5 +1,7 @@
 <configure xmlns="http://namespaces.zope.org/zope">
 
+  <include package="zope.component" file="meta.zcml" />
+
 <!--
 <subscriber
     handler=".generations.evolveSubscriber"

Modified: zope.generations/trunk/src/zope/generations/tests/test_zcml.py
===================================================================
--- zope.generations/trunk/src/zope/generations/tests/test_zcml.py	2010-09-18 09:32:28 UTC (rev 116555)
+++ zope.generations/trunk/src/zope/generations/tests/test_zcml.py	2010-09-18 09:43:35 UTC (rev 116556)
@@ -24,6 +24,9 @@
         # N.B.:  this test deliberately avoids any "ftesting" / layers
         #        support:  its purpose is to ensure that the package's
         #        ZCML file is loadable *without* loading any other ZCML.
-        from zope.configuration.xmlconfig import file
+        import zope.configuration.xmlconfig
         import zope.generations
-        return file('configure.zcml', package=zope.generations)
+        zope.configuration.xmlconfig.file(
+            'configure.zcml', package=zope.generations)
+        zope.configuration.xmlconfig.file(
+            'subscriber.zcml', package=zope.generations)



More information about the checkins mailing list