From 1865da34779352b2b171099704eede1b29525325 Mon Sep 17 00:00:00 2001 From: Bruno Alla Date: Mon, 22 May 2017 18:14:38 +0100 Subject: [PATCH] Write a test covering the representation of the model --- tests/tests.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/tests.py b/tests/tests.py index 572b437..0588f2d 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -99,3 +99,7 @@ class AdminInterfaceTestCase(TestCase): rendered = self.__render_template('{% load admin_interface_tags %}{% get_admin_interface_theme as theme %}{{ theme.name }}') self.assertEqual(rendered, 'Django') + def test_repr(self): + theme = Theme.get_active_theme() + self.assertEqual( "{0}".format(theme), 'Django' ) +