Skip to content
Snippets Groups Projects
Unverified Commit 0b7da7a9 authored by Ben Adida's avatar Ben Adida Committed by GitHub
Browse files

Merge pull request #189 from openSUSE/master

Use syntax from new django-webtest package. Fixes issue #8
parents 2ede468f 2712a2f3
No related branches found
No related tags found
No related merge requests found
......@@ -623,8 +623,8 @@ class ElectionBlackboxTests(WebTest):
check_user_logged_in looks for the "you're already logged" message
"""
# vote by preparing a ballot via the server-side encryption
response = self.app.post("/helios/elections/%s/encrypt-ballot" % election_id, {
'answers_json': utils.to_json([[1]])})
response = self.app.post("/helios/elections/%s/encrypt-ballot" % election_id,
params={'answers_json': utils.to_json([[1]])})
self.assertContains(response, "answers")
# parse it as an encrypted vote with randomness, and make sure randomness is there
......@@ -637,8 +637,8 @@ class ElectionBlackboxTests(WebTest):
encrypted_vote = ballot.serialize()
# cast the ballot
response = self.app.post("/helios/elections/%s/cast" % election_id, {
'encrypted_vote': encrypted_vote})
response = self.app.post("/helios/elections/%s/cast" % election_id,
params={'encrypted_vote': encrypted_vote})
self.assertRedirects(response, "%s/helios/elections/%s/cast_confirm" % (settings.SECURE_URL_HOST, election_id))
cast_confirm_page = response.follow()
......
......@@ -15,7 +15,7 @@ requests==2.7.0
unicodecsv==0.9.0
dj_database_url==0.3.0
django-sslify==0.2.7
django_webtest==1.7.8
django_webtest>=1.9
webtest==2.0.18
django-secure==1.0.1
bleach==1.4.1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment