dabapps/django-email-as-username — Issue #14: Make utils.user_exist work with fixture-loaded data in tests.
Author: aptwebapps
Created: 2012-03-03 13:21:38+00:00
State: open

If you try to use a fixture that has auth.user data in it, while the data is seems properly loaded, utils.user_exists() will not find it. I've tried it with fixtures with the email value pasted into the username field, as well as with the encoded value.

Using create_user() in setUp() in the test works, as is shown in your own tests, but not data from a fixture. The monkey-patching functions in models are being called on the data, but that is all I was able to determine.