1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Added a test for ModelAdmin.__str__().

This commit is contained in:
Anton Samarchyan 2017-06-19 14:32:00 -04:00 committed by Tim Graham
parent 24d7fe4933
commit 90294cc2ae

View File

@ -39,6 +39,10 @@ class ModelAdminTests(TestCase):
) )
self.site = AdminSite() self.site = AdminSite()
def test_modeladmin_str(self):
ma = ModelAdmin(Band, self.site)
self.assertEqual(str(ma), 'modeladmin.ModelAdmin')
# form/fields/fieldsets interaction ############################## # form/fields/fieldsets interaction ##############################
def test_default_fields(self): def test_default_fields(self):