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

Florent Guillaume fg@nuxeo.com
Sun, 4 Aug 2002 19:00:12 -0400


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

Modified Files:
      Tag: CMF-1_3-branch
	dummy.py 
Log Message:
Merged changes from HEAD:
Improved tests to make the distinction between meta_type, portal_type
and the portal type's title.


=== CMF/CMFCore/tests/base/dummy.py 1.3 => 1.3.4.1 ===
     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',