[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/tests/ Fixed a stup error in the doctest generation and an even stupider

Jim Fulton jim at zope.com
Sun Aug 22 22:58:36 EDT 2004


Log message for revision 27223:
  Fixed a stup error in the doctest generation and an even stupider
  error in the tests.
  


Changed:
  U   Zope3/trunk/src/zope/app/tests/dochttp.py
  U   Zope3/trunk/src/zope/app/tests/test_dochttp.py


-=-
Modified: Zope3/trunk/src/zope/app/tests/dochttp.py
===================================================================
--- Zope3/trunk/src/zope/app/tests/dochttp.py	2004-08-23 02:58:28 UTC (rev 27222)
+++ Zope3/trunk/src/zope/app/tests/dochttp.py	2004-08-23 02:58:36 UTC (rev 27223)
@@ -158,7 +158,6 @@
             output.extend(headers)
             output.append('')
             output.extend(self.body)
-            output.extend(self.body)
         else:
             output = []
 

Modified: Zope3/trunk/src/zope/app/tests/test_dochttp.py
===================================================================
--- Zope3/trunk/src/zope/app/tests/test_dochttp.py	2004-08-23 02:58:28 UTC (rev 27222)
+++ Zope3/trunk/src/zope/app/tests/test_dochttp.py	2004-08-23 02:58:36 UTC (rev 27223)
@@ -42,14 +42,6 @@
   </html>
   <BLANKLINE>
   <BLANKLINE>
-  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
-        lang="en">
-  <BLANKLINE>
-  ...
-  <BLANKLINE>
-  </html>
-  <BLANKLINE>
-  <BLANKLINE>
 
 
   >>> print http(r"""
@@ -68,14 +60,6 @@
   </html>
   <BLANKLINE>
   <BLANKLINE>
-  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
-        lang="en">
-  <BLANKLINE>
-  ...
-  <BLANKLINE>
-  </html>
-  <BLANKLINE>
-  <BLANKLINE>
 
 
   >>> print http(r"""
@@ -106,14 +90,6 @@
   </html>
   <BLANKLINE>
   <BLANKLINE>
-  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
-        lang="en">
-  <BLANKLINE>
-  ...
-  <BLANKLINE>
-  </html>
-  <BLANKLINE>
-  <BLANKLINE>
 
 
   >>> print http(r"""
@@ -133,14 +109,6 @@
   </html>
   <BLANKLINE>
   <BLANKLINE>
-  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
-        lang="en">
-  <BLANKLINE>
-  ...
-  <BLANKLINE>
-  </html>
-  <BLANKLINE>
-  <BLANKLINE>
 '''
       
 class Test(unittest.TestCase):
@@ -152,7 +120,7 @@
         dochttp(['-p', 'test', directory])
         got = sys.stdout.getvalue()
         sys.stdout = old
-        self.assert_(got, expected)
+        self.assert_(got == expected)
 
 def test_suite():
     suite = unittest.TestSuite()



More information about the Zope3-Checkins mailing list