OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2015 The Swarming Authors. All rights reserved. | 2 # Copyright 2015 The LUCI Authors. All rights reserved. |
3 # Use of this source code is governed by the Apache v2.0 license that can be | 3 # Use of this source code is governed by the Apache v2.0 license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 import datetime | 6 import datetime |
7 import logging | 7 import logging |
8 import sys | 8 import sys |
9 import unittest | 9 import unittest |
10 | 10 |
11 import test_env | 11 import test_env |
12 test_env.setup_test_env() | 12 test_env.setup_test_env() |
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
603 self.assertEqual(1, len(proto.rules)) | 603 self.assertEqual(1, len(proto.rules)) |
604 | 604 |
605 | 605 |
606 if __name__ == '__main__': | 606 if __name__ == '__main__': |
607 if '-v' in sys.argv: | 607 if '-v' in sys.argv: |
608 unittest.TestCase.maxDiff = None | 608 unittest.TestCase.maxDiff = None |
609 logging.basicConfig(level=logging.DEBUG) | 609 logging.basicConfig(level=logging.DEBUG) |
610 else: | 610 else: |
611 logging.basicConfig(level=logging.FATAL) | 611 logging.basicConfig(level=logging.FATAL) |
612 unittest.main() | 612 unittest.main() |
OLD | NEW |