Separate `test_repr` and `test_str`.

master
Fabio Caccamo 2022-11-18 13:31:57 +01:00
parent e1020a29dc
commit 78041ea28b
1 changed files with 4 additions and 0 deletions

View File

@ -88,6 +88,10 @@ class AdminInterfaceModelsTestCase(TestCase):
self.__test_active_theme()
def test_repr(self):
theme = Theme.get_active_theme()
self.assertEqual(repr(theme), "<Theme: Django>")
def test_str(self):
theme = Theme.get_active_theme()
self.assertEqual("{0}".format(theme), "Django")