Separate test_repr and test_str.
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user