Separate test_repr and test_str.

This commit is contained in:
Fabio Caccamo
2022-11-18 13:31:57 +01:00
parent e1020a29dc
commit 78041ea28b
+4
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")