| Conditions | 2 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | from django.test import TestCase |
||
| 21 | @classmethod |
||
| 22 | def test_defaults(cls): |
||
| 23 | """Tests whether all :see:LocalizedField |
||
| 24 | fields are assigned an empty :see:LocalizedValue |
||
| 25 | instance when the model is instanitiated.""" |
||
| 26 | |||
| 27 | obj = cls.TestModel() |
||
| 28 | |||
| 29 | assert isinstance(obj.title, LocalizedValue) |
||
| 30 | |||
| 49 | assert obj.title.nl == 'dutch_title' |