[CMF-checkins] CVS: CMF/CMFCore/tests/base - dummy.py:1.4

Florent Guillaume fg@nuxeo.com
Sun, 4 Aug 2002 18:59:14 -0400


Update of /cvs-repository/CMF/CMFCore/tests/base
In directory cvs.zope.org:/tmp/cvs-serv10187/CMFCore/tests/base

Modified Files:
	dummy.py 
Log Message:
Improved tests to make the distinction between meta_type, portal_type
the and portal type's title.


=== CMF/CMFCore/tests/base/dummy.py 1.3 => 1.4 ===
     A Dummy piece of PortalContent
     """
     meta_type = 'Dummy'
+    portal_type = 'Dummy Content'
     url = 'foo_url'
     after_add_called = before_delete_called = 0
 
@@ -90,7 +91,7 @@
         return self._safe_get('modified_date')
     
     def Type( self ):
-        return 'Dummy Content'
+        return 'Dummy Content Title'
 
 def addDummy( self, id ):
     """
@@ -121,8 +122,8 @@
     """ Dummy class of type info object """
     meta_type = "Dummy Test Type Info"
 
-DummyFTI = FactoryTypeInformation( 'Dummy',
-                                   title='Dummy Content',
+DummyFTI = FactoryTypeInformation( 'Dummy Content',
+                                   title='Dummy Content Title',
                                    meta_type=DummyContent.meta_type,
                                    product='CMFDefault',
                                    factory='addDocument',