[CMF-checkins] CVS: Products/CMFDefault/tests -
test_Document.py:1.37.2.4
Yvo Schubbe
y.2005- at wcm-solutions.de
Thu May 26 11:28:16 EDT 2005
Update of /cvs-repository/Products/CMFDefault/tests
In directory cvs.zope.org:/tmp/cvs-serv14712/CMFDefault/tests
Modified Files:
Tag: CMF-1_5-branch
test_Document.py
Log Message:
added document interfaces (based on CMFonFive code)
=== Products/CMFDefault/tests/test_Document.py 1.37.2.3 => 1.37.2.4 ===
--- Products/CMFDefault/tests/test_Document.py:1.37.2.3 Wed Nov 24 10:26:06 2004
+++ Products/CMFDefault/tests/test_Document.py Thu May 26 11:27:36 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