From fc400bab2a3fb21f080e44d8f09a435176e41424 Mon Sep 17 00:00:00 2001
From: Ben Adida <ben@adida.net>
Date: Sun, 26 Jun 2011 16:11:18 -0700
Subject: [PATCH] added test for username and passwords with spaces

---
 helios/tests.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/helios/tests.py b/helios/tests.py
index 1523ae3..46f7ffc 100644
--- a/helios/tests.py
+++ b/helios/tests.py
@@ -620,8 +620,9 @@ class ElectionBlackboxTests(WebTest):
             if login_page.status_int != 302:
                 login_form = login_page.form
                 
-                login_form['voter_id'] = username
-                login_form['password'] = password
+                # try with extra spaces
+                login_form['voter_id'] = '  ' + username + '   '
+                login_form['password'] = '  ' + password + '      '
                 login_form.submit()
             
         response = self.app.get(url)
-- 
GitLab