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

Side by Side Diff: tests/gcl_unittest.py

Issue 3156034: Remove the default values and add a comprehensible error message. (Closed)
Patch Set: Change wording Created 10 years, 4 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
« no previous file with comments | « gcl.py ('k') | no next file » | 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) 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 14 matching lines...) Expand all
25 self.mox.StubOutWithMock(gcl.gclient_utils, 'FileWrite') 25 self.mox.StubOutWithMock(gcl.gclient_utils, 'FileWrite')
26 gcl.REPOSITORY_ROOT = None 26 gcl.REPOSITORY_ROOT = None
27 27
28 28
29 class GclUnittest(GclTestsBase): 29 class GclUnittest(GclTestsBase):
30 """General gcl.py tests.""" 30 """General gcl.py tests."""
31 def testMembersChanged(self): 31 def testMembersChanged(self):
32 self.mox.ReplayAll() 32 self.mox.ReplayAll()
33 members = [ 33 members = [
34 'CODEREVIEW_SETTINGS', 'CODEREVIEW_SETTINGS_FILE', 34 'CODEREVIEW_SETTINGS', 'CODEREVIEW_SETTINGS_FILE',
35 'CODEREVIEW_SETTINGS_FILE_NOT_FOUND',
35 'CMDchange', 'CMDchanges', 'CMDcommit', 'CMDdelete', 'CMDdeleteempties', 36 'CMDchange', 'CMDchanges', 'CMDcommit', 'CMDdelete', 'CMDdeleteempties',
36 'CMDdescription', 'CMDdiff', 'CMDhelp', 'CMDlint', 'CMDnothave', 37 'CMDdescription', 'CMDdiff', 'CMDhelp', 'CMDlint', 'CMDnothave',
37 'CMDopened', 'CMDpassthru', 'CMDpresubmit', 'CMDrename', 'CMDsettings', 38 'CMDopened', 'CMDpassthru', 'CMDpresubmit', 'CMDrename', 'CMDsettings',
38 'CMDstatus', 'CMDtry', 'CMDupload', 39 'CMDstatus', 'CMDtry', 'CMDupload',
39 'ChangeInfo', 'Command', 'DEFAULT_LINT_IGNORE_REGEX', 40 'ChangeInfo', 'Command', 'DEFAULT_LINT_IGNORE_REGEX',
40 'DEFAULT_LINT_REGEX', 'CheckHomeForFile', 'DoPresubmitChecks', 41 'DEFAULT_LINT_REGEX', 'CheckHomeForFile', 'DoPresubmitChecks',
41 'ErrorExit', 'FILES_CACHE', 'FilterFlag', 'GenUsage', 42 'ErrorExit', 'FILES_CACHE', 'FilterFlag', 'GenUsage',
42 'GenerateChangeName', 'GenerateDiff', 'GetCLs', 'GetCacheDir', 43 'GenerateChangeName', 'GenerateDiff', 'GetCLs', 'GetCacheDir',
43 'GetCachedFile', 'GetChangelistInfoFile', 'GetChangesDir', 44 'GetCachedFile', 'GetChangelistInfoFile', 'GetChangesDir',
44 'GetCodeReviewSetting', 'GetEditor', 'GetFilesNotInCL', 'GetInfoDir', 45 'GetCodeReviewSetting', 'GetEditor', 'GetFilesNotInCL', 'GetInfoDir',
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 self.mox.ReplayAll() 286 self.mox.ReplayAll()
286 287
287 gcl.CMDupload(['naame', '--no_watchlists']) 288 gcl.CMDupload(['naame', '--no_watchlists'])
288 self.assertEquals(change_info.issue, 1) 289 self.assertEquals(change_info.issue, 1)
289 self.assertEquals(change_info.patchset, 2) 290 self.assertEquals(change_info.patchset, 2)
290 291
291 292
292 if __name__ == '__main__': 293 if __name__ == '__main__':
293 import unittest 294 import unittest
294 unittest.main() 295 unittest.main()
OLDNEW
« no previous file with comments | « gcl.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698