Skip to content
Snippets Groups Projects
Commit 2440b9d9 authored by Ben Adida's avatar Ben Adida
Browse files

added test for answer_url

parent 8efe9f28
No related branches found
No related tags found
No related merge requests found
......@@ -581,7 +581,7 @@ class ElectionBlackboxTests(WebTest):
# add questions
response = self.client.post("/helios/elections/%s/save_questions" % election_id, {
'questions_json': utils.to_json([{"answer_urls": [None,None], "answers": ["Alice", "Bob"], "choice_type": "approval", "max": 1, "min": 0, "question": "Who should be president?", "result_type": "absolute", "short_name": "Who should be president?", "tally_type": "homomorphic"}]),
'questions_json': utils.to_json([{"answer_urls": ["http://example.com",None], "answers": ["Alice", "Bob"], "choice_type": "approval", "max": 1, "min": 0, "question": "Who should be president?", "result_type": "absolute", "short_name": "Who should be president?", "tally_type": "homomorphic"}]),
'csrf_token': self.client.session['csrf_token']})
self.assertContains(response, "SUCCESS")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment