diff options
Diffstat (limited to '')
-rw-r--r-- | test/test_python_application.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/test_python_application.py b/test/test_python_application.py index a693002b..5066624a 100644 --- a/test/test_python_application.py +++ b/test/test_python_application.py @@ -59,9 +59,8 @@ def application(environ, start_response): r = unit.TestUnitHTTP.post(headers={
'Host': 'localhost',
'Content-Type': 'text/html',
- 'Content-Length': str(len(body)),
'Custom-Header': 'blah'
- }, body=body)
+ }, data=body)
self.assertEqual(r.status_code, 200, 'status')
self.assertEqual(r.headers['Content-Length'], str(len(body)),
|