Changeset 5343
- Timestamp:
- 05/25/07 05:36:14 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/unicode/tests/regressiontests/templates/tests.py
r5230 r5343 70 70 return "OtherClass.method" 71 71 72 class U nicodeInStrClass:73 "Class whose __str__ returns a Unicode object."72 class UTF8Class: 73 "Class whose __str__ returns non-ASCII data" 74 74 def __str__(self): 75 return u'Å ÄÄÅœÄÅŸÅ¡Ä' 75 return u'Å ÄÄÅœÄÅŸÅ¡Ä'.encode('utf-8') 76 76 77 77 class Templates(unittest.TestCase): … … 224 224 # Make sure that any unicode strings are converted to bytestrings 225 225 # in the final output. 226 'filter-syntax18': (r'{{ var }}', {'var': U nicodeInStrClass()}, '\xc5\xa0\xc4\x90\xc4\x86\xc5\xbd\xc4\x87\xc5\xbe\xc5\xa1\xc4\x91'),226 'filter-syntax18': (r'{{ var }}', {'var': UTF8Class()}, '\xc5\xa0\xc4\x90\xc4\x86\xc5\xbd\xc4\x87\xc5\xbe\xc5\xa1\xc4\x91'), 227 227 228 228 ### COMMENT SYNTAX ########################################################
