SVN: CMF/trunk/DCWorkflow/testing.py - switched tests to layer based ZCML setup

Yvo Schubbe <[email protected]>
Newsgroups gmane.comp.web.zope.cmf.cvs
Message-ID <[email protected]>
Log message for revision 71215:
  - switched tests to layer based ZCML setup

Changed:
  A   CMF/trunk/DCWorkflow/testing.py

-=-
Added: CMF/trunk/DCWorkflow/testing.py
===================================================================
--- CMF/trunk/DCWorkflow/testing.py	2006-11-20 19:28:51 UTC (rev 71214)
+++ CMF/trunk/DCWorkflow/testing.py	2006-11-20 19:31:14 UTC (rev 71215)
@@ -0,0 +1,45 @@
+##############################################################################
+#
+# Copyright (c) 2006 Zope Corporation and Contributors. All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+""" Unit test layers.
+
+$Id$
+"""
+
+from Products.Five import zcml
+from zope.testing.cleanup import cleanUp
+
+from Products.CMFCore.testing import _DUMMY_ZCML
+
+
+class ExportImportZCMLLayer:
+
+    @classmethod
+    def setUp(cls):
+        import Products.Five
+        import Products.GenericSetup
+        import Products.CMFCore
+        import Products.CMFCore.exportimport
+        import Products.DCWorkflow
+
+        zcml.load_config('meta.zcml', Products.Five)
+        zcml.load_config('configure.zcml', Products.Five)
+        zcml.load_config('configure.zcml', Products.GenericSetup)
+        zcml.load_config('tool.zcml', Products.CMFCore)
+        zcml.load_config('configure.zcml', Products.CMFCore.exportimport)
+        zcml.load_config('tool.zcml', Products.DCWorkflow)
+        zcml.load_config('exportimport.zcml', Products.DCWorkflow)
+        zcml.load_string(_DUMMY_ZCML)
+
+    @classmethod
+    def tearDown(cls):
+        cleanUp()


Property changes on: CMF/trunk/DCWorkflow/testing.py
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.