From 65cc646c4801e3f3e1df1ab06dfaa763fa4b7b22 Mon Sep 17 00:00:00 2001 From: Luke Plant Date: Thu, 2 Jun 2011 00:24:37 +0000 Subject: [PATCH] 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 --- tests/regressiontests/admin_views/tests.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/tests/regressiontests/admin_views/tests.py b/tests/regressiontests/admin_views/tests.py index cc5783cc863..7c6cdd4944d 100644 --- a/tests/regressiontests/admin_views/tests.py +++ b/tests/regressiontests/admin_views/tests.py @@ -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('\s*Gallery\s*', 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').