OLD | NEW |
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 Loading... |
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() |
OLD | NEW |