| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2015 The LUCI 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 under the Apache License, Version 2.0 |
| 4 # found in the LICENSE file. | 4 # that can be found in the LICENSE file. |
| 5 | 5 |
| 6 import json | 6 import json |
| 7 import logging | 7 import logging |
| 8 import sys | 8 import sys |
| 9 import time | 9 import time |
| 10 import unittest | 10 import unittest |
| 11 | 11 |
| 12 import test_env | 12 import test_env |
| 13 test_env.setup_test_env() | 13 test_env.setup_test_env() |
| 14 | 14 |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 delegation.check_can_create_token('user:a@a.com', tok) | 242 delegation.check_can_create_token('user:a@a.com', tok) |
| 243 | 243 |
| 244 | 244 |
| 245 if __name__ == '__main__': | 245 if __name__ == '__main__': |
| 246 if '-v' in sys.argv: | 246 if '-v' in sys.argv: |
| 247 unittest.TestCase.maxDiff = None | 247 unittest.TestCase.maxDiff = None |
| 248 logging.basicConfig(level=logging.DEBUG) | 248 logging.basicConfig(level=logging.DEBUG) |
| 249 else: | 249 else: |
| 250 logging.basicConfig(level=logging.FATAL) | 250 logging.basicConfig(level=logging.FATAL) |
| 251 unittest.main() | 251 unittest.main() |
| OLD | NEW |