Separate `test_repr` and `test_str`.
parent
e1020a29dc
commit
78041ea28b
|
|
@ -88,6 +88,10 @@ class AdminInterfaceModelsTestCase(TestCase):
|
||||||
self.__test_active_theme()
|
self.__test_active_theme()
|
||||||
|
|
||||||
def test_repr(self):
|
def test_repr(self):
|
||||||
|
theme = Theme.get_active_theme()
|
||||||
|
self.assertEqual(repr(theme), "<Theme: Django>")
|
||||||
|
|
||||||
|
def test_str(self):
|
||||||
theme = Theme.get_active_theme()
|
theme = Theme.get_active_theme()
|
||||||
self.assertEqual("{0}".format(theme), "Django")
|
self.assertEqual("{0}".format(theme), "Django")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue