Ticket #3008: tests.diff

File tests.diff, 860 bytes (added by Nebojša Đorđević <nesh@…>, 18 years ago)

minimal test case

  • store/django/tests/regressiontests/forms/tests.py

     
     1# -*- coding: utf-8 -*-
    12"""
    23>>> from django.newforms import *
    34>>> import datetime
     
    1617u'<input type="text" name="email" value="some &quot;quoted&quot; &amp; ampersanded value" />'
    1718>>> w.render('email', 'test@example.com', attrs={'class': 'fun'})
    1819u'<input type="text" name="email" value="test@example.com" class="fun" />'
     20>>> w.render('email', 'ŠĐĆŽćžšđ', attrs={'class': 'fun'})
     21u'<input type="text" name="email" value="ŠĐĆŽćžšđ" class="fun" />'
    1922
    2023You can also pass 'attrs' to the constructor:
    2124>>> w = TextInput(attrs={'class': 'fun'})
Back to Top