| Index: client/site_tests/desktopui_FailedLogin/desktopui_FailedLogin.py
|
| diff --git a/client/site_tests/desktopui_FailedLogin/desktopui_FailedLogin.py b/client/site_tests/desktopui_FailedLogin/desktopui_FailedLogin.py
|
| index 594c206ec449e3fcc9e28850e9f3b419638d200c..ce4b2f3d737a4fe97657ed1dfdc2b79f6613d43d 100644
|
| --- a/client/site_tests/desktopui_FailedLogin/desktopui_FailedLogin.py
|
| +++ b/client/site_tests/desktopui_FailedLogin/desktopui_FailedLogin.py
|
| @@ -3,28 +3,19 @@
|
| # found in the LICENSE file.
|
|
|
| import os, time
|
| -from autotest_lib.client.bin import site_login, test
|
| +from autotest_lib.client.bin import site_ui_test, site_login
|
| from autotest_lib.client.common_lib import error
|
|
|
| -class desktopui_FailedLogin(test.test):
|
| +class desktopui_FailedLogin(site_ui_test.UITest):
|
| version = 1
|
|
|
| - def setup(self):
|
| - site_login.setup_autox(self)
|
| + auto_login = False
|
|
|
| - def run_once(self, script):
|
| - # Can't test login while logged in, so logout.
|
| - if site_login.logged_in():
|
| - site_login.attempt_logout()
|
| -
|
| - # Test account information embedded into json file.
|
| + def run_once(self):
|
| # TODO(cmasone): find better way to determine login has failed.
|
| try:
|
| - site_login.attempt_login(self, script)
|
| + self.login('bogus@bogus.gmail.com', 'bogus')
|
| except site_login.TimeoutError:
|
| pass
|
| else:
|
| raise error.TestFail('Should not have logged in')
|
| -
|
| - # Re-set to a good state
|
| - site_login.nuke_login_manager()
|
|
|