summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Plant <L.Plant.98@cantab.net>2011-06-02 00:24:37 +0000
committerLuke Plant <L.Plant.98@cantab.net>2011-06-02 00:24:37 +0000
commit65cc646c4801e3f3e1df1ab06dfaa763fa4b7b22 (patch)
tree616f6998c101998c84dc9ca0e459ae269e6c7418
parent2304ca423640a7b06390530bf61c879f9ff9e4ba (diff)
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
-rw-r--r--tests/regressiontests/admin_views/tests.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/regressiontests/admin_views/tests.py b/tests/regressiontests/admin_views/tests.py
index cc5783cc86..7c6cdd4944 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('<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').