| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 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. | 8 # pylint is too confused. |
| 9 # pylint: disable=E1101,E1103,E1120,W0212,W0403 | 9 # pylint: disable=E1101,E1103,E1120,W0212,W0403 |
| 10 | 10 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 'CODEREVIEW_SETTINGS_FILE_NOT_FOUND', | 77 'CODEREVIEW_SETTINGS_FILE_NOT_FOUND', |
| 78 'CMDchange', 'CMDchanges', 'CMDcommit', 'CMDdelete', 'CMDdeleteempties', | 78 'CMDchange', 'CMDchanges', 'CMDcommit', 'CMDdelete', 'CMDdeleteempties', |
| 79 'CMDdescription', 'CMDdiff', 'CMDhelp', 'CMDlint', 'CMDnothave', | 79 'CMDdescription', 'CMDdiff', 'CMDhelp', 'CMDlint', 'CMDnothave', |
| 80 'CMDopened', 'CMDpassthru', 'CMDpresubmit', 'CMDrename', 'CMDsettings', | 80 'CMDopened', 'CMDpassthru', 'CMDpresubmit', 'CMDrename', 'CMDsettings', |
| 81 'CMDstatus', 'CMDtry', 'CMDupload', | 81 'CMDstatus', 'CMDtry', 'CMDupload', |
| 82 'ChangeInfo', 'Command', 'DEFAULT_LINT_IGNORE_REGEX', | 82 'ChangeInfo', 'Command', 'DEFAULT_LINT_IGNORE_REGEX', |
| 83 'DEFAULT_LINT_REGEX', 'CheckHomeForFile', 'DoPresubmitChecks', | 83 'DEFAULT_LINT_REGEX', 'CheckHomeForFile', 'DoPresubmitChecks', |
| 84 'ErrorExit', 'FILES_CACHE', 'FilterFlag', 'GenUsage', | 84 'ErrorExit', 'FILES_CACHE', 'FilterFlag', 'GenUsage', |
| 85 'GenerateChangeName', 'GenerateDiff', 'GetCLs', 'GetCacheDir', | 85 'GenerateChangeName', 'GenerateDiff', 'GetCLs', 'GetCacheDir', |
| 86 'GetCachedFile', 'GetChangelistInfoFile', 'GetChangesDir', | 86 'GetCachedFile', 'GetChangelistInfoFile', 'GetChangesDir', |
| 87 'GetCodeReviewSetting', 'GetEditor', 'GetFilesNotInCL', 'GetInfoDir', | 87 'GetCodeReviewSetting', 'GetFilesNotInCL', 'GetInfoDir', |
| 88 'GetModifiedFiles', 'GetRepositoryRoot', 'ListFiles', | 88 'GetModifiedFiles', 'GetRepositoryRoot', 'ListFiles', |
| 89 'LoadChangelistInfoForMultiple', 'MISSING_TEST_MSG', | 89 'LoadChangelistInfoForMultiple', 'MISSING_TEST_MSG', |
| 90 'OptionallyDoPresubmitChecks', 'REPOSITORY_ROOT', 'REVIEWERS_REGEX', | 90 'OptionallyDoPresubmitChecks', 'REPOSITORY_ROOT', 'REVIEWERS_REGEX', |
| 91 'RunShell', 'RunShellWithReturnCode', 'SVN', | 91 'RunShell', 'RunShellWithReturnCode', 'SVN', |
| 92 'TryChange', 'UnknownFiles', 'Warn', | 92 'TryChange', 'UnknownFiles', 'Warn', |
| 93 'attrs', 'breakpad', 'defer_attributes', 'fix_encoding', | 93 'attrs', 'breakpad', 'defer_attributes', 'fix_encoding', |
| 94 'gclient_utils', 'json', 'main', 'need_change', 'need_change_and_args', | 94 'gclient_utils', 'json', 'main', 'need_change', 'need_change_and_args', |
| 95 'no_args', 'optparse', 'os', 'presubmit_support', 'random', 're', | 95 'no_args', 'optparse', 'os', 'presubmit_support', 'random', 're', |
| 96 'rietveld', | 96 'rietveld', |
| 97 'string', 'subprocess2', 'sys', 'tempfile', 'time', | 97 'string', 'subprocess2', 'sys', 'tempfile', 'time', |
| (...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 581 self.assertEquals(retval, 0) | 581 self.assertEquals(retval, 0) |
| 582 self.assertEquals(change_info.description, | 582 self.assertEquals(change_info.description, |
| 583 'deescription\n\nCommitted: http://view/12345') | 583 'deescription\n\nCommitted: http://view/12345') |
| 584 self.assertTrue(change_info._deleted) | 584 self.assertTrue(change_info._deleted) |
| 585 self.assertTrue(change_info._closed) | 585 self.assertTrue(change_info._closed) |
| 586 | 586 |
| 587 | 587 |
| 588 if __name__ == '__main__': | 588 if __name__ == '__main__': |
| 589 import unittest | 589 import unittest |
| 590 unittest.main() | 590 unittest.main() |
| OLD | NEW |