Ticket #4530: tests.py

File tests.py, 469 bytes (added by marcin@…, 8 years ago)
Line 
1"""
2First, execute any statement
3>>> 'Some doctest'
4'Some doctest'
5
6Now, see if the bug is present.  The next statement will raise
7"TypeError: 'str' object is not callable".
8
9>>> _('Test marked for translation')
10'Test marked for translation'
11
12Just another test: I would expect this to be true with I18N enabled.
13
14>>> from django.conf import first_time_gettext
15>>> from django.utils.translation import gettext
16>>> ((_ == first_time_gettext) or (_ == gettext))
17True
18
19"""
Back to Top