| 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 # Fixes include path. | 8 # Fixes include path. |
| 9 from super_mox import mox, SuperMoxTestBase | 9 from super_mox import mox, SuperMoxTestBase |
| 10 | 10 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 'ErrorExit', 'FILES_CACHE', 'FilterFlag', 'GenUsage', | 50 'ErrorExit', 'FILES_CACHE', 'FilterFlag', 'GenUsage', |
| 51 'GenerateChangeName', 'GenerateDiff', 'GetCLs', 'GetCacheDir', | 51 'GenerateChangeName', 'GenerateDiff', 'GetCLs', 'GetCacheDir', |
| 52 'GetCachedFile', 'GetChangelistInfoFile', 'GetChangesDir', | 52 'GetCachedFile', 'GetChangelistInfoFile', 'GetChangesDir', |
| 53 'GetCodeReviewSetting', 'GetEditor', 'GetFilesNotInCL', 'GetInfoDir', | 53 'GetCodeReviewSetting', 'GetEditor', 'GetFilesNotInCL', 'GetInfoDir', |
| 54 'GetModifiedFiles', 'GetRepositoryRoot', 'ListFiles', | 54 'GetModifiedFiles', 'GetRepositoryRoot', 'ListFiles', |
| 55 'LoadChangelistInfoForMultiple', 'MISSING_TEST_MSG', | 55 'LoadChangelistInfoForMultiple', 'MISSING_TEST_MSG', |
| 56 'OptionallyDoPresubmitChecks', 'REPOSITORY_ROOT', | 56 'OptionallyDoPresubmitChecks', 'REPOSITORY_ROOT', |
| 57 'RunShell', 'RunShellWithReturnCode', 'SVN', | 57 'RunShell', 'RunShellWithReturnCode', 'SVN', |
| 58 'TryChange', 'UnknownFiles', 'Warn', | 58 'TryChange', 'UnknownFiles', 'Warn', |
| 59 'attrs', 'breakpad', 'defer_attributes', 'gclient_utils', 'getpass', | 59 'attrs', 'breakpad', 'defer_attributes', 'gclient_utils', 'getpass', |
| 60 'json', 'main', 'need_change', 'need_change_and_args', 'no_args', 'os', | 60 'json', 'main', 'need_change', 'need_change_and_args', 'no_args', |
| 61 'random', 're', 'string', 'subprocess', 'sys', 'tempfile', | 61 'optparse', 'os', 'random', 're', 'string', 'subprocess', 'sys', |
| 62 'time', 'upload', 'urllib2', | 62 'tempfile', 'time', 'upload', 'urllib2', |
| 63 ] | 63 ] |
| 64 # If this test fails, you should add the relevant test. | 64 # If this test fails, you should add the relevant test. |
| 65 self.compareMembers(gcl, members) | 65 self.compareMembers(gcl, members) |
| 66 | 66 |
| 67 def testIsSVNMoved(self): | 67 def testIsSVNMoved(self): |
| 68 # TODO(maruel): TEST ME | 68 # TODO(maruel): TEST ME |
| 69 pass | 69 pass |
| 70 | 70 |
| 71 def testGetSVNFileProperty(self): | 71 def testGetSVNFileProperty(self): |
| 72 # TODO(maruel): TEST ME | 72 # TODO(maruel): TEST ME |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 try: | 367 try: |
| 368 gcl.CMDupload(['naame', '-s', 'foo']) | 368 gcl.CMDupload(['naame', '-s', 'foo']) |
| 369 self.fail() | 369 self.fail() |
| 370 except SystemExit: | 370 except SystemExit: |
| 371 pass | 371 pass |
| 372 | 372 |
| 373 | 373 |
| 374 if __name__ == '__main__': | 374 if __name__ == '__main__': |
| 375 import unittest | 375 import unittest |
| 376 unittest.main() | 376 unittest.main() |
| OLD | NEW |