From 90294cc2aebb9a60335c047d0239ca70c4fd7100 Mon Sep 17 00:00:00 2001 From: Anton Samarchyan Date: Mon, 19 Jun 2017 14:32:00 -0400 Subject: [PATCH] Added a test for ModelAdmin.__str__(). --- tests/modeladmin/tests.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/modeladmin/tests.py b/tests/modeladmin/tests.py index a8aac7f51b..21a388c983 100644 --- a/tests/modeladmin/tests.py +++ b/tests/modeladmin/tests.py @@ -39,6 +39,10 @@ class ModelAdminTests(TestCase): ) self.site = AdminSite() + def test_modeladmin_str(self): + ma = ModelAdmin(Band, self.site) + self.assertEqual(str(ma), 'modeladmin.ModelAdmin') + # form/fields/fieldsets interaction ############################## def test_default_fields(self):