[Zope3-checkins] SVN: Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/ fix up whitespace in tests

Benji York benji at zope.com
Wed Jul 27 16:40:47 EDT 2005


Log message for revision 37499:
  fix up whitespace in tests
  

Changed:
  U   Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/README.txt
  U   Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/ftests/testdoc.py

-=-
Modified: Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/README.txt
===================================================================
--- Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/README.txt	2005-07-27 19:47:14 UTC (rev 37498)
+++ Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/README.txt	2005-07-27 20:40:46 UTC (rev 37499)
@@ -30,7 +30,6 @@
         <h1>Simple Page</h1>
       </body>
     </html>
-    <BLANKLINE>
 
 Making assertions about page contents are easy.
 
@@ -108,7 +107,6 @@
     Content-Type: text/html;charset=utf-8
     X-Content-Type-Warning: guessed from content
     X-Powered-By: Zope (www.zope.org), Python (www.python.org)
-    <BLANKLINE>
 
 Or as a mapping:
 

Modified: Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/ftests/testdoc.py
===================================================================
--- Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/ftests/testdoc.py	2005-07-27 19:47:14 UTC (rev 37498)
+++ Zope3/branches/testbrowser-integration/src/zope/app/testing/testbrowser/ftests/testdoc.py	2005-07-27 20:40:46 UTC (rev 37499)
@@ -17,11 +17,13 @@
 $Id$
 """
 import unittest
+import doctest
 from zope.app.testing.functional import FunctionalDocFileSuite
 
 
 def test_suite():
-    return FunctionalDocFileSuite('../README.txt')
+    return FunctionalDocFileSuite('../README.txt',
+              optionflags=doctest.NORMALIZE_WHITESPACE+doctest.ELLIPSIS)
 
 if __name__ == '__main__':
     unittest.main(defaultTest='test_suite')



More information about the Zope3-Checkins mailing list