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 presubmit_support.py and presubmit_canned_checks.py.""" | 6 """Unit tests for presubmit_support.py and presubmit_canned_checks.py.""" |
7 | 7 |
8 # pylint: disable=E1101,E1103 | 8 # pylint: disable=E1101,E1103 |
9 | 9 |
10 import StringIO | 10 import StringIO |
(...skipping 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1246 'DepotToLocalPath', | 1246 'DepotToLocalPath', |
1247 'FilterSourceFile', | 1247 'FilterSourceFile', |
1248 'LocalPaths', | 1248 'LocalPaths', |
1249 'LocalToDepotPath', | 1249 'LocalToDepotPath', |
1250 'Command', | 1250 'Command', |
1251 'RunTests', | 1251 'RunTests', |
1252 'PresubmitLocalPath', | 1252 'PresubmitLocalPath', |
1253 'ReadFile', | 1253 'ReadFile', |
1254 'RightHandSideLines', | 1254 'RightHandSideLines', |
1255 'ServerPaths', | 1255 'ServerPaths', |
| 1256 'ShutdownPool', |
1256 'basename', | 1257 'basename', |
1257 'cPickle', | 1258 'cPickle', |
1258 'cpplint', | 1259 'cpplint', |
1259 'cStringIO', | 1260 'cStringIO', |
1260 'canned_checks', | 1261 'canned_checks', |
1261 'change', | 1262 'change', |
1262 'cpu_count', | 1263 'cpu_count', |
1263 'environ', | 1264 'environ', |
1264 'fnmatch', | 1265 'fnmatch', |
1265 'glob', | 1266 'glob', |
(...skipping 1831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3097 owners_check=False) | 3098 owners_check=False) |
3098 self.assertEqual(2, len(results)) | 3099 self.assertEqual(2, len(results)) |
3099 self.assertEqual( | 3100 self.assertEqual( |
3100 'Found line ending with white spaces in:', results[0]._message) | 3101 'Found line ending with white spaces in:', results[0]._message) |
3101 self.checkstdout('') | 3102 self.checkstdout('') |
3102 | 3103 |
3103 | 3104 |
3104 if __name__ == '__main__': | 3105 if __name__ == '__main__': |
3105 import unittest | 3106 import unittest |
3106 unittest.main() | 3107 unittest.main() |
OLD | NEW |