| Conditions | 1 |
| Total Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | from __future__ import unicode_literals |
||
| 15 | def test_list_label(self): |
||
| 16 | # See that adding a field to the admin list_display also receives the translated title |
||
| 17 | # This happens by TranslatedFieldDescriptor.short_description |
||
| 18 | self.assertEqual(label_for_field('tr_title', SimpleModel), "Translated Title") |
||
| 19 | |||
| 26 |