@override_settings(AUTH_USER_MODULE='tests.NoUsernameUser')
    def test_authenticate_with_custom_user_model(self):
        result = authenticate(username='username')
        self.assertIsNone(result)
When a custom user model is used that doesn't have a field
dataset/ETHPy150Open relekang/django-nopassword/tests/test_backends.py/AuthenticationBackendTests.test_authenticate_with_custom_user_model