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

        CustomUser._default_manager.create_user('test@example.com', '1990-01-01', 'test')

        # User not in database
        self.assertTrue(check_password({}, 'unknown', '') is None)

        # Valid user with correct password'
        self.assertTrue(check_password({}, 'test@example.com', 'test'))

        # Valid user with incorrect password
        self.assertFalse(check_password({}, 'test@example.com', 'incorrect'))
Get the current active (lastly added) object from the stack.
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Django-1.6.10/django/contrib/auth/tests/test_handlers.py/ModWsgiHandlerTestCase.test_check_password_custom_user--crossover with--dataset/ETHPy150Open tehmaze/nagios-cli/nagios_cli/context.py/Context.get