OLD | NEW |
1 #!/usr/bin/env python2.5 | 1 #!/usr/bin/env python |
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 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 is too confused. | 8 # pylint is too confused. |
9 # pylint: disable=E1101,E1103,W0212,W0403 | 9 # pylint: disable=E1101,E1103,W0212,W0403 |
10 | 10 |
11 import StringIO | 11 import StringIO |
(...skipping 2055 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2067 whitelist=['^a$', '^b$'], | 2067 whitelist=['^a$', '^b$'], |
2068 blacklist=['a'], | 2068 blacklist=['a'], |
2069 verbose=True) | 2069 verbose=True) |
2070 self.assertEqual(results, []) | 2070 self.assertEqual(results, []) |
2071 self.checkstdout('Running random_directory/b\n') | 2071 self.checkstdout('Running random_directory/b\n') |
2072 | 2072 |
2073 | 2073 |
2074 if __name__ == '__main__': | 2074 if __name__ == '__main__': |
2075 import unittest | 2075 import unittest |
2076 unittest.main() | 2076 unittest.main() |
OLD | NEW |