| Conditions | 4 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | from django.conf import settings |
||
| 30 | @staticmethod |
||
| 31 | def test_compress(): |
||
| 32 | """Tests whether the :see:compress function |
||
| 33 | is working properly.""" |
||
| 34 | |||
| 35 | input_value = [lang_name for _, lang_name in settings.LANGUAGES] |
||
| 36 | output_value = LocalizedFieldForm().compress(input_value) |
||
| 37 | |||
| 38 | for lang_code, lang_name in settings.LANGUAGES: |
||
| 39 | assert output_value.get(lang_code) == lang_name |
||
| 40 |