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: tests/gcl_unittest.py

Issue 5695007: Enhance RunPylint to use white_list and black_list arguments. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: address review comment 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
« no previous file with comments | « tests/fake_repos.py ('k') | tests/gclient_scm_test.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2010 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2010 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Unit tests for gcl.py.""" 6 """Unit tests for gcl.py."""
7 7
8 # pylint is too confused.
9 # pylint: disable=E1101,E1103,E1120,W0212,W0403
10
8 # Fixes include path. 11 # Fixes include path.
9 from super_mox import mox, SuperMoxTestBase 12 from super_mox import mox, SuperMoxTestBase
10 13
11 import gcl 14 import gcl
12 15
13 16
14 class GclTestsBase(SuperMoxTestBase): 17 class GclTestsBase(SuperMoxTestBase):
15 """Setups and tear downs the mocks but doesn't test anything as-is.""" 18 """Setups and tear downs the mocks but doesn't test anything as-is."""
16 def setUp(self): 19 def setUp(self):
17 SuperMoxTestBase.setUp(self) 20 SuperMoxTestBase.setUp(self)
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 try: 370 try:
368 gcl.CMDupload(['naame', '-s', 'foo']) 371 gcl.CMDupload(['naame', '-s', 'foo'])
369 self.fail() 372 self.fail()
370 except SystemExit: 373 except SystemExit:
371 pass 374 pass
372 375
373 376
374 if __name__ == '__main__': 377 if __name__ == '__main__':
375 import unittest 378 import unittest
376 unittest.main() 379 unittest.main()
OLDNEW
« no previous file with comments | « tests/fake_repos.py ('k') | tests/gclient_scm_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698