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

Side by Side Diff: tests/gcl_unittest.py

Issue 130493002: Handle the PrimeLint SSL read timeout better. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Add 'ssl' to tests/gcl_unittests.py Created 6 years, 11 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/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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 'GetCodeReviewSetting', 'GetFilesNotInCL', 'GetInfoDir', 101 'GetCodeReviewSetting', 'GetFilesNotInCL', 'GetInfoDir',
102 'GetModifiedFiles', 'GetRepositoryRoot', 'ListFiles', 102 'GetModifiedFiles', 'GetRepositoryRoot', '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', '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 'string', 'subprocess2', 'sys', 'tempfile', 'time', 111 'ssl', 'string', 'subprocess2', 'sys', 'tempfile', 'time',
iannucci 2014/01/09 22:27:21 LOL this test is so bogus.... lgtm
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):
118 # TODO(maruel): TEST ME 118 # TODO(maruel): TEST ME
119 pass 119 pass
120 120
121 def testGetSVNFileProperty(self): 121 def testGetSVNFileProperty(self):
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 self.assertTrue(change_info._deleted) 610 self.assertTrue(change_info._deleted)
611 self.assertTrue(change_info._closed) 611 self.assertTrue(change_info._closed)
612 self.assertEqual( 612 self.assertEqual(
613 change_info._comments_added, 613 change_info._comments_added,
614 ["Committed patchset #1 manually as r12345 (presubmit successful)."]) 614 ["Committed patchset #1 manually as r12345 (presubmit successful)."])
615 615
616 616
617 if __name__ == '__main__': 617 if __name__ == '__main__':
618 import unittest 618 import unittest
619 unittest.main() 619 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