[Checkins] SVN: bobo/trunk/bobodoctestumentation/src/bobodoctestumentation/ Fixed unit tests: WebOb 0.9.7 broke them.

Fabio Tranchitella kobold at kobold.it
Fri Dec 18 05:17:28 EST 2009


Log message for revision 106745:
  Fixed unit tests: WebOb 0.9.7 broke them.
  
  Note that to have all the tests passing, it is required to upgrade the WebOb
  package to the 0.9.7 version.
  

Changed:
  U   bobo/trunk/bobodoctestumentation/src/bobodoctestumentation/decorator.test
  U   bobo/trunk/bobodoctestumentation/src/bobodoctestumentation/main.test

-=-
Modified: bobo/trunk/bobodoctestumentation/src/bobodoctestumentation/decorator.test
===================================================================
--- bobo/trunk/bobodoctestumentation/src/bobodoctestumentation/decorator.test	2009-12-18 10:12:48 UTC (rev 106744)
+++ bobo/trunk/bobodoctestumentation/src/bobodoctestumentation/decorator.test	2009-12-18 10:17:28 UTC (rev 106745)
@@ -208,10 +208,8 @@
 
     >>> call_resource(hi, '/foo')
     request:
-    GET /foo
+    GET /foo HTTP/1.0
     Host: localhost:80
-    <BLANKLINE>
-    <BLANKLINE>
     -----
     BoboException:
     {'body': 'Hi None.',
@@ -228,10 +226,8 @@
 
     >>> call_resource(hi, '/bar')
     request:
-    GET /bar
+    GET /bar HTTP/1.0
     Host: localhost:80
-    <BLANKLINE>
-    <BLANKLINE>
     -----
     BoboException:
     {'body': 'Hi bar.',
@@ -321,10 +317,8 @@
 
     >>> call_resource(hi, '/bar')
     request:
-    GET /bar
+    GET /bar HTTP/1.0
     Host: localhost:80
-    <BLANKLINE>
-    <BLANKLINE>
     -----
     200 OK
     Content-Length: 7
@@ -493,10 +487,8 @@
     >>> call_resource(sub1, '/x/foo')
     sub1 x
     request:
-    GET /x/foo
+    GET /x/foo HTTP/1.0
     Host: localhost:80
-    <BLANKLINE>
-    <BLANKLINE>
     -----
     BoboException:
     {'body': 'Hi None.',

Modified: bobo/trunk/bobodoctestumentation/src/bobodoctestumentation/main.test
===================================================================
--- bobo/trunk/bobodoctestumentation/src/bobodoctestumentation/main.test	2009-12-18 10:12:48 UTC (rev 106744)
+++ bobo/trunk/bobodoctestumentation/src/bobodoctestumentation/main.test	2009-12-18 10:17:28 UTC (rev 106745)
@@ -291,7 +291,7 @@
     >>> print response
     302 Found
     Location: http://www.python.org/
-    content-type: text/html; charset=UTF-8
+    Content-Type: text/html; charset=UTF-8
     Content-Length: 26
     <BLANKLINE>
     See http://www.python.org/



More information about the checkins mailing list