Document how to test protected areas with repoze.who-testutil
This issue existed in Trac. The original can be viewed at http://trac.turbogears.org/ticket/2261
This issue existed on SourceForge. The original can be viewed at https://sourceforge.net/p/turbogears2/tickets/3
Original Author: pedersen, Original Timestamp: 2011-03-10 02:31:42.392000
Original Body: I have to explain how to test protected areas and authentication separately, using repoze.who-testutil.
Original Author: pedersen, Original Timestamp: 2012-08-24 01:32:59.714000
Original Body: - version: 2.1.0 --> 2.1.5
- milestone: 2.2.0 --> 2.3.0
I'm on 2.1.5 and as far as I can tell, even though repoze.who-testutil is installed, it doesn't work (e.g. the {'REMOTE_USER': 'username'} in the extra_environ doesn't authenticate - I get a 401). Is there some configuration that needs to be done to make the testutil plugin actually work? I can't find anything in its documentation or repoze.who's documentation (the normal [plugin:testutil] use = repoze.who.plugins.testutil:[anything in that file] doesn't work.)