Pylons / webtest

Wraps any WSGI application and makes it easy to send test requests to that application, without starting up an HTTP server.
https://docs.pylonsproject.org/projects/webtest/en/latest/
Other
336 stars 110 forks source link

Use truth test instead of length == 0 #213

Closed postmasters closed 5 years ago

postmasters commented 5 years ago

length is initially set to None. When there is no Content-Length header, length will still be None. So the test length == 0 is not entirely correct.

postmasters commented 5 years ago

LGTM, with the caveat of a changelog entry in https://github.com/Pylons/webtest/blob/master/CHANGELOG.rst

Done.