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

added test for username and passwords with spaces

parent 781e2249
Branches
Tags
No related merge requests found
...@@ -620,8 +620,9 @@ class ElectionBlackboxTests(WebTest): ...@@ -620,8 +620,9 @@ class ElectionBlackboxTests(WebTest):
if login_page.status_int != 302: if login_page.status_int != 302:
login_form = login_page.form login_form = login_page.form
login_form['voter_id'] = username # try with extra spaces
login_form['password'] = password login_form['voter_id'] = ' ' + username + ' '
login_form['password'] = ' ' + password + ' '
login_form.submit() login_form.submit()
response = self.app.get(url) response = self.app.get(url)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment