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

Side by Side Diff: tools/telemetry/telemetry/core/browser_credentials_unittest.py

Issue 445793004: Fix import order with isort tool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 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 unified diff | Download patch
OLDNEW
1 # Copyright 2012 The Chromium Authors. All rights reserved. 1 # Copyright 2012 The Chromium 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 import os 4 import os
5 import tempfile 5 import tempfile
6 import unittest 6 import unittest
7 7
8 from telemetry.core import browser_credentials 8 from telemetry.core import browser_credentials
9 9
10
10 SIMPLE_CREDENTIALS_STRING = """ 11 SIMPLE_CREDENTIALS_STRING = """
11 { 12 {
12 "google": { 13 "google": {
13 "username": "example", 14 "username": "example",
14 "password": "asdf" 15 "password": "asdf"
15 } 16 }
16 } 17 }
17 """ 18 """
18 19
19 class BackendStub(object): 20 class BackendStub(object):
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 self.assertEqual("example", 63 self.assertEqual("example",
63 google_backend.login_needed_called[1]["username"]) 64 google_backend.login_needed_called[1]["username"])
64 self.assertEqual("asdf", 65 self.assertEqual("asdf",
65 google_backend.login_needed_called[1]["password"]) 66 google_backend.login_needed_called[1]["password"])
66 67
67 browser_cred.LoginNoLongerNeeded(tab, 'google') 68 browser_cred.LoginNoLongerNeeded(tab, 'google')
68 self.assertTrue(google_backend.login_no_longer_needed_called is not None) 69 self.assertTrue(google_backend.login_no_longer_needed_called is not None)
69 self.assertEqual(tab, google_backend.login_no_longer_needed_called[0]) 70 self.assertEqual(tab, google_backend.login_no_longer_needed_called[0])
70 finally: 71 finally:
71 os.remove(f.name) 72 os.remove(f.name)
OLDNEW
« no previous file with comments | « tools/telemetry/telemetry/core/browser_credentials.py ('k') | tools/telemetry/telemetry/core/browser_finder.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698