From 526575c64150e10dd8666d1ed3f86eedd00df2ed Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Fri, 22 Apr 2016 19:39:13 +0200 Subject: Fixed #21379 -- Created auth-specific username validators Thanks Tim Graham for the review. --- tests/auth_tests/test_basic.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/auth_tests/test_basic.py') diff --git a/tests/auth_tests/test_basic.py b/tests/auth_tests/test_basic.py index 818f6a6d53..da42f4055f 100644 --- a/tests/auth_tests/test_basic.py +++ b/tests/auth_tests/test_basic.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import unicode_literals import warnings @@ -56,6 +57,10 @@ class BasicTestCase(TestCase): u2 = User.objects.create_user('testuser2', 'test2@example.com') self.assertFalse(u2.has_usable_password()) + def test_unicode_username(self): + User.objects.create_user('jörg') + User.objects.create_user('Григорий') + def test_is_anonymous_authenticated_method_deprecation(self): deprecation_message = ( 'Using user.is_authenticated() and user.is_anonymous() as a ' -- cgit v1.3