1. add a test to test_views.py. Using test_login_create_users() as a base would probably be easiest.
2. create a User and UserOpenID object with a given nickname and identity.
3. set OPENID_STRICT_USERNAMES, and try to log in using a different identity URL but the same nickname
4. verify that the login has failed.
I agree with Anthony here.
Here is a quick sketch for the test:
1. add a test to test_views.py. Using test_login_ create_ users() as a base would probably be easiest. STRICT_ USERNAMES, and try to log in using a different identity URL but the same nickname
2. create a User and UserOpenID object with a given nickname and identity.
3. set OPENID_
4. verify that the login has failed.
After adding the test, this change looks fine.