summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2008-08-29 16:09:29 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2008-08-29 16:09:29 +0000
commit21928f2ba01c5411c57720eec82f7ad8658ed733 (patch)
tree131a4a26ff5b13545ab6491c9b6724e755a6e273 /tests
parent89ccbabbfc0964886076fb3ef768a6e57d88e512 (diff)
Fixed #7738: support initial values via `GET` for `SelectMutliple` in the admin.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8699 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
-rw-r--r--tests/regressiontests/admin_views/tests.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/regressiontests/admin_views/tests.py b/tests/regressiontests/admin_views/tests.py
index c0cc94599d..d16889f45a 100644
--- a/tests/regressiontests/admin_views/tests.py
+++ b/tests/regressiontests/admin_views/tests.py
@@ -36,6 +36,14 @@ class AdminViewBasicTest(TestCase):
response = self.client.get('/test_admin/admin/admin_views/section/add/')
self.failUnlessEqual(response.status_code, 200)
+ def testAddWithGETArgs(self):
+ response = self.client.get('/test_admin/admin/admin_views/section/add/', {'name': 'My Section'})
+ self.failUnlessEqual(response.status_code, 200)
+ self.failUnless(
+ 'value="My Section"' in response.content,
+ "Couldn't find an input with the right value in the response."
+ )
+
def testBasicEditGet(self):
"""
A smoke test to ensureGET on the change_view works.