Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: tests/gcl_unittest.py

Issue 256072: Un-revert the reverted 28058, so that we get quiet again.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/tools/depot_tools/
Patch Set: Created 11 years, 2 months 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 | « gclient_utils.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) 2009 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2009 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 import unittest 8 import unittest
9 9
10 # Local imports 10 # Local imports
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 members = [ 42 members = [
43 'CODEREVIEW_SETTINGS', 'CODEREVIEW_SETTINGS_FILE', 'CPP_EXTENSIONS', 43 'CODEREVIEW_SETTINGS', 'CODEREVIEW_SETTINGS_FILE', 'CPP_EXTENSIONS',
44 'Change', 'ChangeInfo', 'Changes', 'DeleteEmptyChangeLists', 'Commit', 44 'Change', 'ChangeInfo', 'Changes', 'DeleteEmptyChangeLists', 'Commit',
45 'DoPresubmitChecks', 45 'DoPresubmitChecks',
46 'ErrorExit', 'FILES_CACHE', 'FilterFlag', 'GenerateChangeName', 46 'ErrorExit', 'FILES_CACHE', 'FilterFlag', 'GenerateChangeName',
47 'GenerateDiff', 47 'GenerateDiff',
48 'GetCacheDir', 'GetCachedFile', 'GetChangesDir', 'GetCLs', 48 'GetCacheDir', 'GetCachedFile', 'GetChangesDir', 'GetCLs',
49 'GetChangelistInfoFile', 'GetCodeReviewSetting', 'GetEditor', 49 'GetChangelistInfoFile', 'GetCodeReviewSetting', 'GetEditor',
50 'GetFilesNotInCL', 'GetInfoDir', 'GetIssueDescription', 50 'GetFilesNotInCL', 'GetInfoDir', 'GetIssueDescription',
51 'GetModifiedFiles', 'GetRepositoryRoot', 51 'GetModifiedFiles', 'GetRepositoryRoot',
52 'GetSVNFileProperty', 'Help', 'IGNORE_PATHS', 'IsSVNMoved', 52 'GetSVNFileProperty', 'Help', 'IsSVNMoved',
53 'Lint', 'LoadChangelistInfoForMultiple', 53 'Lint', 'LoadChangelistInfoForMultiple',
54 'MISSING_TEST_MSG', 'Opened', 'OptionallyDoPresubmitChecks', 54 'MISSING_TEST_MSG', 'Opened', 'OptionallyDoPresubmitChecks',
55 'PresubmitCL', 'ReadFile', 'REPOSITORY_ROOT', 'RunShell', 55 'PresubmitCL', 'ReadFile', 'REPOSITORY_ROOT', 'RunShell',
56 'RunShellWithReturnCode', 'SendToRietveld', 'TryChange', 56 'RunShellWithReturnCode', 'SendToRietveld', 'TryChange',
57 'UnknownFiles', 'UploadCL', 'Warn', 'WriteFile', 57 'UnknownFiles', 'UploadCL', 'Warn', 'WriteFile',
58 'gclient_scm', 'gclient_utils', 'getpass', 'main', 'os', 'random', 're', 58 'gclient_scm', 'gclient_utils', 'getpass', 'main', 'os', 'random', 're',
59 'shutil', 'string', 'subprocess', 'sys', 'tempfile', 59 'shutil', 'string', 'subprocess', 'sys', 'tempfile',
60 'upload', 'urllib2', 'xml', 60 'upload', 'urllib2', 'xml',
61 ] 61 ]
62 # If this test fails, you should add the relevant test. 62 # If this test fails, you should add the relevant test.
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 gcl.os.chdir('somewhere') 357 gcl.os.chdir('somewhere')
358 self.mox.ReplayAll() 358 self.mox.ReplayAll()
359 359
360 gcl.UploadCL(change_info, args) 360 gcl.UploadCL(change_info, args)
361 self.assertEquals(change_info.issue, 1) 361 self.assertEquals(change_info.issue, 1)
362 self.assertEquals(change_info.patchset, 2) 362 self.assertEquals(change_info.patchset, 2)
363 363
364 364
365 if __name__ == '__main__': 365 if __name__ == '__main__':
366 unittest.main() 366 unittest.main()
OLDNEW
« no previous file with comments | « gclient_utils.py ('k') | tests/gclient_scm_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698