Impossible to enter a conditional branch in from_file method
I have a similar situation to the one reported by Danny here  in webob/request.py (classmethod from_file, line 874-875). The strip() method prevents from entering the following if and so the reported lines are not coverable. I invested quite some time trying to think how to make it work to no avail.
If you have time, please take a look to see if you agree with this so we can remove the code in request.py