Ticket #4530: tests.py
File tests.py, 469 bytes (added by , 17 years ago) |
---|
Line | |
---|---|
1 | """ |
2 | First, execute any statement |
3 | >>> 'Some doctest' |
4 | 'Some doctest' |
5 | |
6 | Now, 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 | |
12 | Just 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)) |
17 | True |
18 | |
19 | """ |