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

Removed a broken test added in [16312]

This test caused a test failure (in subclass CustomModelAdminTest), and the
test also proved to be extremely brittle when trying to implement #11868,
and basically unfixable with current infrastructure.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16313 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Luke Plant 2011-06-02 00:24:37 +00:00
parent 2304ca4236
commit 65cc646c48

View File

@ -238,17 +238,6 @@ class AdminViewBasicTest(TestCase):
"Results of sorting on ModelAdmin method are out of order."
)
def testChangeListSortColumnsDefault(self):
# Need a model that has a list_display with '__str__' as only item.
# Sanity check for assumption made in following test.
self.assertEqual(list(GalleryAdmin.list_display), ['__str__'])
# A header corresponding to '__str__' should not be in an anchor
# for sorting.
g = Gallery.objects.create(name='gallery1')
response = self.client.get('/test_admin/%s/admin_views/gallery/' % self.urlbit, {})
m = re.search('<th scope="col">\s*Gallery\s*</th>', response.content)
self.assertTrue(m is not None)
def testLimitedFilter(self):
"""Ensure admin changelist filters do not contain objects excluded via limit_choices_to.
This also tests relation-spanning filters (e.g. 'color__value').