diff --git a/django/contrib/admindocs/tests/__init__.py b/django/contrib/admindocs/tests/__init__.py
index d28cb40..a9d443b 100644
a
|
b
|
|
1 | 1 | from django.contrib.admindocs import views |
2 | 2 | from django.db.models import fields as builtin_fields |
3 | 3 | from django.utils import unittest |
| 4 | from django.utils.translation import ugettext as _ |
4 | 5 | |
5 | 6 | import fields |
6 | 7 | |
… |
… |
class TestFieldType(unittest.TestCase):
|
17 | 18 | def test_builtin_fields(self): |
18 | 19 | self.assertEqual( |
19 | 20 | views.get_readable_field_data_type(builtin_fields.BooleanField()), |
20 | | u'Boolean (Either True or False)' |
| 21 | _(u'Boolean (Either True or False)') |
21 | 22 | ) |
22 | 23 | |
23 | 24 | def test_custom_fields(self): |
24 | 25 | self.assertEqual( |
25 | 26 | views.get_readable_field_data_type(fields.CustomField()), |
26 | | u'A custom field type' |
| 27 | _(u'A custom field type') |
27 | 28 | ) |
28 | 29 | self.assertEqual( |
29 | 30 | views.get_readable_field_data_type(fields.DescriptionLackingField()), |
30 | | u'Field of type: DescriptionLackingField' |
| 31 | _(u'Field of type: %(field_type)s') % {'field_type': 'DescriptionLackingField'} |
31 | 32 | ) |