diff options
| author | Anton Samarchyan <anton.samarchyan@savoirfairelinux.com> | 2017-06-19 14:32:00 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-06-19 15:33:21 -0400 |
| commit | 90294cc2aebb9a60335c047d0239ca70c4fd7100 (patch) | |
| tree | 1ec6f69eb4dee1199824ba3934ea0dcc68c9cf34 /tests/modeladmin | |
| parent | 24d7fe49332614fd838cbccdd2b8e8aad0d37a71 (diff) | |
Added a test for ModelAdmin.__str__().
Diffstat (limited to 'tests/modeladmin')
| -rw-r--r-- | tests/modeladmin/tests.py | 4 |
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): |
