| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 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: disable=E1103,E1101,E1120 | 8 # pylint: disable=E1103,E1101,E1120 |
| 9 | 9 |
| 10 import os | 10 import os |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 'DEFAULT_LINT_REGEX', 'CheckHomeForFile', 'DoPresubmitChecks', | 97 'DEFAULT_LINT_REGEX', 'CheckHomeForFile', 'DoPresubmitChecks', |
| 98 'ErrorExit', 'FILES_CACHE', 'FilterFlag', 'GenUsage', | 98 'ErrorExit', 'FILES_CACHE', 'FilterFlag', 'GenUsage', |
| 99 'GenerateChangeName', 'GenerateDiff', 'GetCLs', 'GetCacheDir', | 99 'GenerateChangeName', 'GenerateDiff', 'GetCLs', 'GetCacheDir', |
| 100 'GetCachedFile', 'GetChangelistInfoFile', 'GetChangesDir', | 100 'GetCachedFile', 'GetChangelistInfoFile', 'GetChangesDir', |
| 101 'GetCodeReviewSetting', 'GetFilesNotInCL', 'GetInfoDir', | 101 'GetCodeReviewSetting', 'GetFilesNotInCL', 'GetInfoDir', |
| 102 'GetModifiedFiles', 'GetRepositoryRoot', 'GetTreeStatus', 'ListFiles', | 102 'GetModifiedFiles', 'GetRepositoryRoot', 'GetTreeStatus', 'ListFiles', |
| 103 'LoadChangelistInfoForMultiple', 'MISSING_TEST_MSG', | 103 'LoadChangelistInfoForMultiple', 'MISSING_TEST_MSG', |
| 104 'OptionallyDoPresubmitChecks', 'REPOSITORY_ROOT', | 104 'OptionallyDoPresubmitChecks', 'REPOSITORY_ROOT', |
| 105 'RunShell', 'RunShellWithReturnCode', 'SVN', | 105 'RunShell', 'RunShellWithReturnCode', 'SVN', |
| 106 'TryChange', 'UnknownFiles', 'Warn', | 106 'TryChange', 'UnknownFiles', 'Warn', |
| 107 'attrs', 'breakpad', 'defer_attributes', 'fix_encoding', | 107 'attrs', 'auth', 'breakpad', 'defer_attributes', 'fix_encoding', |
| 108 'gclient_utils', 'git_cl', 'json', 'main', 'need_change', | 108 'gclient_utils', 'git_cl', 'json', 'main', 'need_change', |
| 109 'need_change_and_args', 'no_args', 'optparse', 'os', | 109 'need_change_and_args', 'no_args', 'optparse', 'os', |
| 110 'presubmit_support', 'random', 're', 'rietveld', | 110 'presubmit_support', 'random', 're', 'rietveld', |
| 111 'ssl', 'string', 'subprocess2', 'sys', 'tempfile', 'time', | 111 'ssl', 'string', 'subprocess2', 'sys', 'tempfile', 'time', |
| 112 'upload', 'urllib2', | 112 'upload', 'urllib2', |
| 113 ] | 113 ] |
| 114 # If this test fails, you should add the relevant test. | 114 # If this test fails, you should add the relevant test. |
| 115 self.compareMembers(gcl, members) | 115 self.compareMembers(gcl, members) |
| 116 | 116 |
| 117 def testIsSVNMoved(self): | 117 def testIsSVNMoved(self): |
| (...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 613 self.assertTrue(change_info._closed) | 613 self.assertTrue(change_info._closed) |
| 614 self.assertEqual( | 614 self.assertEqual( |
| 615 change_info._comments_added, | 615 change_info._comments_added, |
| 616 ["Committed patchset #1 (id:1337) manually as r12345 (presubmit " | 616 ["Committed patchset #1 (id:1337) manually as r12345 (presubmit " |
| 617 "successful)."]) | 617 "successful)."]) |
| 618 | 618 |
| 619 | 619 |
| 620 if __name__ == '__main__': | 620 if __name__ == '__main__': |
| 621 import unittest | 621 import unittest |
| 622 unittest.main() | 622 unittest.main() |
| OLD | NEW |