| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2014 The Swarming Authors. All rights reserved. | 2 # Copyright 2014 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 os | 8 import os |
| 9 import random | 9 import random |
| 10 import sys | 10 import sys |
| 11 import unittest | 11 import unittest |
| 12 | 12 |
| (...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 ndb.Key(task_request.TaskRequest, 0x7f14acec2fcfffff), | 511 ndb.Key(task_request.TaskRequest, 0x7f14acec2fcfffff), |
| 512 task_request.request_id_to_key(0xeb5313d0300000)) | 512 task_request.request_id_to_key(0xeb5313d0300000)) |
| 513 | 513 |
| 514 | 514 |
| 515 if __name__ == '__main__': | 515 if __name__ == '__main__': |
| 516 if '-v' in sys.argv: | 516 if '-v' in sys.argv: |
| 517 unittest.TestCase.maxDiff = None | 517 unittest.TestCase.maxDiff = None |
| 518 logging.basicConfig( | 518 logging.basicConfig( |
| 519 level=logging.DEBUG if '-v' in sys.argv else logging.ERROR) | 519 level=logging.DEBUG if '-v' in sys.argv else logging.ERROR) |
| 520 unittest.main() | 520 unittest.main() |
| OLD | NEW |