Author: lukeplant Date: 2011-06-01 17:24:37 -0700 (Wed, 01 Jun 2011) New Revision: 16313
Modified: django/trunk/tests/regressiontests/admin_views/tests.py Log: 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. Modified: django/trunk/tests/regressiontests/admin_views/tests.py =================================================================== --- django/trunk/tests/regressiontests/admin_views/tests.py 2011-06-01 23:17:40 UTC (rev 16312) +++ django/trunk/tests/regressiontests/admin_views/tests.py 2011-06-02 00:24:37 UTC (rev 16313) @@ -238,17 +238,6 @@ "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'). -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.