'check_password() returns the correct values as per
https://modwsgi.readthedocs.io/en/develop/user-guides/access-control-mechanisms.html#apache-authentication-provider
with a custom user installed.'

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

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