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

Yvo Schubbe schubbe@web.de
Sat, 15 Mar 2003 05:43:24 -0500


Update of /cvs-repository/CMF/CMFDefault/tests
In directory cvs.zope.org:/tmp/cvs-serv1054/CMFDefault/tests

Modified Files:
	test_Document.py 
Log Message:
removed redundant lines

=== CMF/CMFDefault/tests/test_Document.py 1.27 => 1.28 ===
--- CMF/CMFDefault/tests/test_Document.py:1.27	Fri Mar 14 11:38:15 2003
+++ CMF/CMFDefault/tests/test_Document.py	Sat Mar 15 05:43:22 2003
@@ -257,28 +257,25 @@
 
     def test_Format_methods(self):
         d = self.d
-        d.setFormat( 'plain' )
+        d.setFormat('plain')
         self.assertEqual( d.text_format, 'plain' )
         self.assertEqual( d.Format(), 'text/plain' )
         d.setFormat( d.Format() )
         self.assertEqual( d.text_format, 'plain' )
 
-        d = self.d
-        d.setFormat( 'structured-text' )
+        d.setFormat('structured-text')
         self.assertEqual( d.text_format, 'structured-text' )
         self.assertEqual( d.Format(), 'text/plain' )
         d.setFormat( d.Format() )
         self.assertEqual( d.text_format, 'structured-text' )
 
-        d = self.d
-        d.setFormat( 'html' )
+        d.setFormat('html')
         self.assertEqual( d.text_format, 'html' )
         self.assertEqual( d.Format(), 'text/html' )
         d.setFormat( d.Format() )
         self.assertEqual( d.text_format, 'html' )
 
-        d = self.d
-        d.setFormat( 'foo' )
+        d.setFormat('foo')
         self.assertEqual( d.text_format, 'structured-text' )
 
     def test_interface(self):