summaryrefslogtreecommitdiff
path: root/tests/modeladmin
diff options
context:
space:
mode:
authorAnton Samarchyan <anton.samarchyan@savoirfairelinux.com>2017-06-19 14:32:00 -0400
committerTim Graham <timograham@gmail.com>2017-06-19 15:33:21 -0400
commit90294cc2aebb9a60335c047d0239ca70c4fd7100 (patch)
tree1ec6f69eb4dee1199824ba3934ea0dcc68c9cf34 /tests/modeladmin
parent24d7fe49332614fd838cbccdd2b8e8aad0d37a71 (diff)
Added a test for ModelAdmin.__str__().
Diffstat (limited to 'tests/modeladmin')
-rw-r--r--tests/modeladmin/tests.py4
1 files changed, 4 insertions, 0 deletions
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):