[Zope3-checkins] SVN: Zope3/branches/stephan_and_jim-response-refactor/src/zope/app/testing/tests.py Removed tests of a class that we got rid off.

Stephan Richter srichter at cosmos.phy.tufts.edu
Fri Sep 2 19:58:54 EDT 2005


Log message for revision 38281:
  Removed tests of a class that we got rid off.
  

Changed:
  U   Zope3/branches/stephan_and_jim-response-refactor/src/zope/app/testing/tests.py

-=-
Modified: Zope3/branches/stephan_and_jim-response-refactor/src/zope/app/testing/tests.py
===================================================================
--- Zope3/branches/stephan_and_jim-response-refactor/src/zope/app/testing/tests.py	2005-09-02 23:52:49 UTC (rev 38280)
+++ Zope3/branches/stephan_and_jim-response-refactor/src/zope/app/testing/tests.py	2005-09-02 23:58:53 UTC (rev 38281)
@@ -123,7 +123,7 @@
   <BLANKLINE>
   <BLANKLINE>
 '''
-      
+
 class FunctionalHTTPDocTest(unittest.TestCase):
 
     def test_dochttp(self):
@@ -136,34 +136,6 @@
         self.assert_(got == expected)
 
 
-class DocResponseWrapperTestCase(unittest.TestCase):
-
-    def setUp(self):
-        self.body_output = StringIO.StringIO()
-        self.path = "/foo/bar/"
-        self.response = object()
-
-        self.wrapper = functional.DocResponseWrapper(
-            self.response, self.body_output, self.path, HEADERS)
-
-    def test__str__(self):
-        self.assertEqual(str(self.wrapper),
-                         HEADERS + "\n")
-        self.body_output.write(BODY)
-        self.assertEqual(str(self.wrapper),
-                         "%s\n\n%s" % (HEADERS, BODY))
-
-    def test_getBody(self):
-        self.assertEqual(self.wrapper.getBody(), "")
-        self.body_output.write(BODY)
-        self.assertEqual(self.wrapper.getBody(), BODY)
-
-    def test_getOutput(self):
-        self.assertEqual(self.wrapper.getOutput(), "")
-        self.body_output.write(BODY)
-        self.assertEqual(self.wrapper.getOutput(), BODY)
-
-
 class AuthHeaderTestCase(unittest.TestCase):
 
     def test_auth_encoded(self):
@@ -209,7 +181,6 @@
 def test_suite():
     return unittest.TestSuite((
         unittest.makeSuite(FunctionalHTTPDocTest),
-        unittest.makeSuite(DocResponseWrapperTestCase),
         unittest.makeSuite(AuthHeaderTestCase),
         unittest.makeSuite(HTTPCallerTestCase),
         ))



More information about the Zope3-Checkins mailing list