Ticket #3314: forms_test.diff
File forms_test.diff, 893 bytes (added by , 18 years ago) |
---|
-
www-libs/django/tests/regressiontests/forms/tests.py
4 4 >>> import datetime 5 5 >>> import re 6 6 7 # smart_unicode tests 8 >>> from django.newforms.util import smart_unicode 9 >>> class Test: 10 ... def __str__(self): 11 ... return 'ŠĐĆŽćžšđ' 12 >>> class TestU: 13 ... def __str__(self): 14 ... return 'Foo' 15 ... def __unicode__(self): 16 ... return u'\u0160\u0110\u0106\u017d\u0107\u017e\u0161\u0111' 17 >>> smart_unicode(Test()) 18 u'\u0160\u0110\u0106\u017d\u0107\u017e\u0161\u0111' 19 >>> smart_unicode(TestU()) 20 u'\u0160\u0110\u0106\u017d\u0107\u017e\u0161\u0111' 21 >>> smart_unicode(1) 22 u'1' 23 7 24 ########### 8 25 # Widgets # 9 26 ###########