Ticket #3008: tests.diff
File tests.diff, 860 bytes (added by , 18 years ago) |
---|
-
store/django/tests/regressiontests/forms/tests.py
1 # -*- coding: utf-8 -*- 1 2 """ 2 3 >>> from django.newforms import * 3 4 >>> import datetime … … 16 17 u'<input type="text" name="email" value="some "quoted" & ampersanded value" />' 17 18 >>> w.render('email', 'test@example.com', attrs={'class': 'fun'}) 18 19 u'<input type="text" name="email" value="test@example.com" class="fun" />' 20 >>> w.render('email', 'ŠĐĆŽćžšđ', attrs={'class': 'fun'}) 21 u'<input type="text" name="email" value="ŠĐĆŽćžšđ" class="fun" />' 19 22 20 23 You can also pass 'attrs' to the constructor: 21 24 >>> w = TextInput(attrs={'class': 'fun'})