Python 3, Django 1.7+ compatilibity, some tests.
[fnpdjango.git] / tests / tests / test_utils_settings.py
1 # -*- coding: utf-8 -*-
2 # This file is part of FNPDjango, licensed under GNU Affero GPLv3 or later.
3 # Copyright © Fundacja Nowoczesna Polska. See README.md for more information.
4 #
5 from __future__ import unicode_literals
6
7 from django.conf import settings
8 from django.test import TestCase
9
10 try:
11     unicode
12 except NameError:
13     pass
14 else:
15     str = unicode
16
17
18 class UtilsSettingsTestCase(TestCase):
19     def test_lazy_ugettext_lazy(self):
20         self.assertEqual(str(settings.TEST_LAZY_UGETTEXT_LAZY),
21             "Lazy setting.")
22
23