summaryrefslogtreecommitdiff
path: root/tests/regressiontests/admin_views
diff options
context:
space:
mode:
authorJannis Leidel <jannis@leidel.info>2010-01-05 18:24:27 +0000
committerJannis Leidel <jannis@leidel.info>2010-01-05 18:24:27 +0000
commitafa4c5ac6062581fdb809e0615c69350c25bd917 (patch)
tree36951da6662e7a7949c6247ee092ddb43957cc6a /tests/regressiontests/admin_views
parent33afa13af56da3231a6a3c008babeec2e470aaeb (diff)
Fixed #10615 - Added selection counter to admin change list. Thanks to Martin Mahner for the idea and initial patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12107 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/admin_views')
-rw-r--r--tests/regressiontests/admin_views/tests.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/regressiontests/admin_views/tests.py b/tests/regressiontests/admin_views/tests.py
index df43701586..899fff80bc 100644
--- a/tests/regressiontests/admin_views/tests.py
+++ b/tests/regressiontests/admin_views/tests.py
@@ -1209,6 +1209,13 @@ class AdminActionsTest(TestCase):
self.assertContains(response, msg)
self.failUnlessEqual(Subscriber.objects.count(), 2)
+ def test_selection_counter(self):
+ """
+ Check if the selection counter is there.
+ """
+ response = self.client.get('/test_admin/admin/admin_views/subscriber/')
+ self.assertContains(response, '<span class="_acnt">0</span> of 2 subscribers selected')
+
class TestCustomChangeList(TestCase):
fixtures = ['admin-views-users.xml']