Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Unified Diff: client/site_tests/login_BadAuthentication/login_BadAuthentication.py

Issue 3126002: Add some more test cases for login (Closed) Base URL: http://src.chromium.org/git/autotest.git
Patch Set: improve docstring Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/site_tests/login_BadAuthentication/control ('k') | client/site_tests/login_SecondFactor/control » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/site_tests/login_BadAuthentication/login_BadAuthentication.py
diff --git a/client/site_tests/login_BadAuthentication/login_BadAuthentication.py b/client/site_tests/login_BadAuthentication/login_BadAuthentication.py
index 17e8b420ff28f6941572ea9b9d23194ae38968dd..401ef9231427b7e7fcc0f7c0439d8a4d3756b301 100644
--- a/client/site_tests/login_BadAuthentication/login_BadAuthentication.py
+++ b/client/site_tests/login_BadAuthentication/login_BadAuthentication.py
@@ -10,10 +10,12 @@ class login_BadAuthentication(site_ui_test.UITest):
auto_login = False
+ _errorString = None
+
def __login_denier(self, handler, url_args):
handler.send_response(403)
handler.end_headers()
- handler.wfile.write('Error=BadAuthentication.')
+ handler.wfile.write(self._errorString)
def start_authserver(self):
@@ -24,7 +26,8 @@ class login_BadAuthentication(site_ui_test.UITest):
self.use_local_dns()
- def run_once(self):
+ def run_once(self, error_string='BadAuthentication'):
+ self._errorString = "Error=" + error_string
# TODO(cmasone): find better way to determine login has failed.
try:
self.login(self.username, self.password)
« no previous file with comments | « client/site_tests/login_BadAuthentication/control ('k') | client/site_tests/login_SecondFactor/control » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698