| Conditions | 1 |
| Total Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | from __future__ import unicode_literals |
||
| 20 | def test_list_label_abc(self): |
||
| 21 | # See that the TranslatedFieldDescriptor of the concrete model properly routes to the proper model |
||
| 22 | self.assertEqual(label_for_field('tr_title', ConcreteModel), "Translated Title") |
||
| 23 | |||
| 24 | # See that the TranslatedFieldDescriptor of the abstract model handles the fallback properly. |
||
| 25 | self.assertEqual(label_for_field('tr_title', AbstractModel), "Tr title") |
||
| 26 |