summaryrefslogtreecommitdiff
path: root/tests/test_request.txt
diff options
context:
space:
mode:
authorSergey Schetinin <sergey@maluke.com>2011-02-20 03:20:32 +0200
committerSergey Schetinin <sergey@maluke.com>2011-02-20 03:20:32 +0200
commit296c1bbc602416bf398d58c062a08bd597fe4943 (patch)
tree5439500964a264b22f4b31233f432f93bf76ab3a /tests/test_request.txt
parent1a213fb6f9f0caa831df359b37d03bb3d9ed9c98 (diff)
downloadwebob-tests.pycon2011-runup.tar.gz
fix test broken by the mergetests.pycon2011-runup
Diffstat (limited to 'tests/test_request.txt')
-rw-r--r--tests/test_request.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_request.txt b/tests/test_request.txt
index 48728c1..687c4d2 100644
--- a/tests/test_request.txt
+++ b/tests/test_request.txt
@@ -456,7 +456,7 @@ FakeCGIBody have both readline and readlines methods:
>>> req_.POST['c'] = 'd'
>>> req_.str_POST
MultiDict([('a', 'b'), ('upload', FieldStorage('upload', 'test.html')), ('c', 'd')])
- >>> req_.body_file.readline()
+ >>> req_.body_file_raw.readline()
'--foobar\r\n'
>>> [n.replace('\r', '') for n in req_.body_file.readlines()]
['Content-Disposition: form-data; name="a"\n', '\n', 'b\n', '--foobar\n', 'Content-Disposition: form-data; name="upload"; filename="test.html"\n', 'Content-type: text/html\n', '\n', '<html>Some text...</html>\n', '--foobar\n', 'Content-Disposition: form-data; name="c"\n', '\n', 'd\n', '--foobar--']