[CMF-checkins] CVS: Products/CMFDefault/tests - test_Document.py:1.41

Yvo Schubbe y.2005- at wcm-solutions.de
Thu May 26 11:31:10 EDT 2005


Update of /cvs-repository/Products/CMFDefault/tests
In directory cvs.zope.org:/tmp/cvs-serv15944/CMFDefault/tests

Modified Files:
	test_Document.py 
Log Message:
added document interfaces (based on CMFonFive code)


=== Products/CMFDefault/tests/test_Document.py 1.40 => 1.41 ===
--- Products/CMFDefault/tests/test_Document.py:1.40	Wed Nov 24 10:12:30 2004
+++ Products/CMFDefault/tests/test_Document.py	Thu May 26 11:30:29 2005
@@ -19,7 +19,6 @@
 import Testing
 import Zope
 Zope.startup()
-from Interface.Verify import verifyClass
 
 from os.path import abspath
 from os.path import dirname
@@ -360,7 +359,8 @@
         self.assertEqual( d.Format(), 'text/plain' )
         self.assertEqual( d.text_format, 'structured-text' )
 
-    def test_interface(self):
+    def test_z2interfaces(self):
+        from Interface.Verify import verifyClass
         from Products.CMFCore.interfaces.Dynamic \
                 import DynamicType as IDynamicType
         from Products.CMFCore.interfaces.Contentish \
@@ -372,12 +372,16 @@
         from Products.CMFCore.interfaces.DublinCore \
                 import MutableDublinCore as IMutableDublinCore
         from Products.CMFDefault.Document import Document
+        from Products.CMFDefault.interfaces.Document import IDocument
+        from Products.CMFDefault.interfaces.Document import IMutableDocument
 
         verifyClass(IDynamicType, Document)
         verifyClass(IContentish, Document)
         verifyClass(IDublinCore, Document)
         verifyClass(ICatalogableDublinCore, Document)
         verifyClass(IMutableDublinCore, Document)
+        verifyClass(IDocument, Document)
+        verifyClass(IMutableDocument, Document)
 
 
 class DocumentFTPGetTests(RequestTestBase):



More information about the CMF-checkins mailing list