| Conditions | 4 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | from django.test import TestCase |
||
| 33 | @classmethod |
||
| 34 | def test_set(cls): |
||
| 35 | """Tests whether the :see:LocalizedValueDescriptor |
||
| 36 | class's see:set function works properly.""" |
||
| 37 | |||
| 38 | obj = cls.TestModel() |
||
| 39 | |||
| 40 | for language, value in get_init_values(): |
||
| 41 | translation.activate(language) |
||
| 42 | obj.title = value |
||
| 43 | assert obj.title.get(language) == value |
||
| 44 | assert getattr(obj.title, language) == value |
||
| 45 |