[CMF-checkins] CVS: Products/CMFDefault/tests - test_Document.py:1.28.4.5 test_NewsItem.py:1.7.40.3

Stefan H. Holek stefan at epy.co.at
Wed Aug 4 17:21:00 EDT 2004


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

Modified Files:
      Tag: CMF-1_4-branch
	test_Document.py test_NewsItem.py 
Log Message:
Fixed two backported tests.


=== Products/CMFDefault/tests/test_Document.py 1.28.4.4 => 1.28.4.5 ===
--- Products/CMFDefault/tests/test_Document.py:1.28.4.4	Wed Aug  4 02:12:57 2004
+++ Products/CMFDefault/tests/test_Document.py	Wed Aug  4 17:21:00 2004
@@ -457,7 +457,7 @@
         self.assertEqual( r.status, 204 )
 
     def test_default_format( self ):
-        d = self._makeOne('foo', text='')
+        d = self.d
         self.assertEqual( d.Format(), 'text/plain' )
         self.assertEqual( d.text_format, 'structured-text' )
 


=== Products/CMFDefault/tests/test_NewsItem.py 1.7.40.2 => 1.7.40.3 ===
--- Products/CMFDefault/tests/test_NewsItem.py:1.7.40.2	Wed Aug  4 02:12:57 2004
+++ Products/CMFDefault/tests/test_NewsItem.py	Wed Aug  4 17:21:00 2004
@@ -123,7 +123,7 @@
         self.assertEqual( d.text, '' )
 
     def test_default_format( self ):
-        d = self._makeOne('foo', text='')
+        d = NewsItem('foo')
         self.assertEqual( d.Format(), 'text/plain' )
         self.assertEqual( d.text_format, 'structured-text' )
 



More information about the CMF-checkins mailing list