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

Side by Side Diff: client/site_tests/login_BadAuthentication/login_BadAuthentication.py

Issue 5519008: Create a cros directory under client, and start moving things into it. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git@master
Patch Set: patch Created 10 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 from autotest_lib.client.bin import chromeos_constants, site_login, site_ui_test 5 from autotest_lib.client.bin import site_login, site_ui_test
6 from autotest_lib.client.common_lib import error, site_auth_server 6 from autotest_lib.client.common_lib import error, site_auth_server
7 7
8 class login_BadAuthentication(site_ui_test.UITest): 8 class login_BadAuthentication(site_ui_test.UITest):
9 version = 1 9 version = 1
10 10
11 auto_login = False 11 auto_login = False
12 12
13 _errorString = None 13 _errorString = None
14 14
15 def __login_denier(self, handler, url_args): 15 def __login_denier(self, handler, url_args):
(...skipping 14 matching lines...) Expand all
30 self._errorString = "Error=" + error_string 30 self._errorString = "Error=" + error_string
31 # TODO(cmasone): find better way to determine login has failed. 31 # TODO(cmasone): find better way to determine login has failed.
32 try: 32 try:
33 self.login(self.username, self.password) 33 self.login(self.username, self.password)
34 except site_login.TimeoutError: 34 except site_login.TimeoutError:
35 pass 35 pass
36 else: 36 else:
37 raise error.TestFail('Should not have logged in') 37 raise error.TestFail('Should not have logged in')
38 38
39 self._authServer.wait_for_client_login() 39 self._authServer.wait_for_client_login()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698