diff options
author | Bert JW Regeer <bertjw@regeer.org> | 2015-04-11 12:22:05 -0400 |
---|---|---|
committer | Bert JW Regeer <bertjw@regeer.org> | 2015-04-12 16:19:16 -0400 |
commit | 0e7b6e5fbf70b31564f71c7b00ce6de286224104 (patch) | |
tree | 1368475204c7ba566f71131e3ab4db40e2338857 | |
parent | 1cc3340fabb638407cbdc8d7b7b1c09a7eca8148 (diff) | |
download | webob-bugfix/modify_post.tar.gz |
Update test to just check the environment variablebugfix/modify_post
The test was flawed in that it assumed that the body_file would be
replaced with FakeCGIBody.
-rw-r--r-- | tests/test_request.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/test_request.py b/tests/test_request.py index caaafdd..c98b9f6 100644 --- a/tests/test_request.py +++ b/tests/test_request.py @@ -2995,14 +2995,10 @@ class TestRequest_functional(unittest.TestCase): content_type='multipart/form-data; boundary=boundary', POST=_cgi_escaping_body ) - f0 = req.body_file_raw post1 = req.POST - f1 = req.body_file_raw - self.assertTrue(f1 is not f0) + self.assertTrue('webob._parsed_post_vars' in req.environ) post2 = req.POST - f2 = req.body_file_raw self.assertTrue(post1 is post2) - self.assertTrue(f1 is f2) def test_middleware_body(self): |