'Verify that check_password returns the correct values as per
http://code.google.com/p/modwsgi/wiki/AccessControlMechanisms#Apache_Authentication_Provider
with custom user installed'

@override_settings(AUTH_USER_MODEL=u'auth.CustomUser')
def test_check_password_custom_user(self):

    CustomUser._default_manager.create_user(u'test@example.com', u'1990-01-01', u'test')
    self.assertTrue((check_password({}, u'unknown', u'') is None))
    self.assertTrue(check_password({}, u'test@example.com', u'test'))
    self.assertFalse(check_password({}, u'test@example.com', u'incorrect'))
