[Zope3-checkins] SVN: Zope3/trunk/src/zope/dublincore/test Test setup for dublin core.

Jürgen Kartnaller juergen at kartnaller.at
Mon Aug 14 09:45:59 EDT 2006


Log message for revision 69471:
  Test setup for dublin core.
  

Changed:
  A   Zope3/trunk/src/zope/dublincore/testing.py
  U   Zope3/trunk/src/zope/dublincore/tests/test_property.py

-=-
Added: Zope3/trunk/src/zope/dublincore/testing.py
===================================================================
--- Zope3/trunk/src/zope/dublincore/testing.py	2006-08-14 13:44:49 UTC (rev 69470)
+++ Zope3/trunk/src/zope/dublincore/testing.py	2006-08-14 13:45:55 UTC (rev 69471)
@@ -0,0 +1,27 @@
+##############################################################################
+#
+# Copyright (c) 2005 Zope Foundation 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.
+#
+##############################################################################
+"""
+$Id: $
+"""
+__docformat__ = 'restructuredtext'
+
+from zope import component
+
+from annotatableadapter import ZDCAnnotatableAdapter
+from interfaces import IWriteZopeDublinCore
+
+def setUpDublinCore():
+    component.provideAdapter(ZDCAnnotatableAdapter,
+                             provides=IWriteZopeDublinCore,
+                            )


Property changes on: Zope3/trunk/src/zope/dublincore/testing.py
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: Zope3/trunk/src/zope/dublincore/tests/test_property.py
===================================================================
--- Zope3/trunk/src/zope/dublincore/tests/test_property.py	2006-08-14 13:44:49 UTC (rev 69470)
+++ Zope3/trunk/src/zope/dublincore/tests/test_property.py	2006-08-14 13:45:55 UTC (rev 69471)
@@ -26,15 +26,14 @@
 
 from zope.app.testing import setup, placelesssetup
 from zope.dublincore import annotatableadapter
+from zope.dublincore import testing
 from zope.dublincore.interfaces import IWriteZopeDublinCore
 
 
 def setUp(test):
     setup.placefulSetUp()
     setup.setUpAnnotations()
-    component.provideAdapter(annotatableadapter.ZDCAnnotatableAdapter,
-                             provides=IWriteZopeDublinCore,
-                            )
+    testing.setUpDublinCore()
 
 def tearDown(test):
     setup.placefulTearDown()



More information about the Zope3-Checkins mailing list