257: Maybe accept id explicitly to also verify that nothing was passed except for the id?
282: Replace all this with webob.Request.blank('/').environ . You can also use Request(environ).get_response(some_wsgi_app) to simplify some of your code if you wish. Since these tests can assume that webob works properly (they're not testing webob), I don't see a reason not to use it to simplify the WSGI.
I am not totally comfortable with the self.called approach to testing, but I can't think of anything better, so that's fine :)
I see you changed 'disable' back to 'disable-msg' which is fine; I need to change to 'disable' across the whole project, in a separate branch, now that pylint 0.21.1 has changed their API.
257: Maybe accept id explicitly to also verify that nothing was passed except for the id?
282: Replace all this with webob.Request. blank(' /').environ . You can also use Request( environ) .get_response( some_wsgi_ app) to simplify some of your code if you wish. Since these tests can assume that webob works properly (they're not testing webob), I don't see a reason not to use it to simplify the WSGI.
I am not totally comfortable with the self.called approach to testing, but I can't think of anything better, so that's fine :)
I see you changed 'disable' back to 'disable-msg' which is fine; I need to change to 'disable' across the whole project, in a separate branch, now that pylint 0.21.1 has changed their API.