| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/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 """Unit tests for handlers_cron.py.""" | 6 """Unit tests for handlers_cron.py.""" |
| 7 | 7 |
| 8 import datetime | 8 import datetime |
| 9 import json | 9 import json |
| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 lease.put() | 121 lease.put() |
| 122 | 122 |
| 123 self.app.get( | 123 self.app.get( |
| 124 '/internal/cron/process-machine-reclamations', | 124 '/internal/cron/process-machine-reclamations', |
| 125 headers={'X-AppEngine-Cron': 'true'}, | 125 headers={'X-AppEngine-Cron': 'true'}, |
| 126 ) | 126 ) |
| 127 | 127 |
| 128 | 128 |
| 129 if __name__ == '__main__': | 129 if __name__ == '__main__': |
| 130 unittest.main() | 130 unittest.main() |
| OLD | NEW |