| 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 base64 | 6 import base64 |
| 7 import hashlib | 7 import hashlib |
| 8 import json | 8 import json |
| 9 import logging | 9 import logging |
| 10 import sys | 10 import sys |
| 11 import unittest | 11 import unittest |
| 12 from Crypto.PublicKey import RSA | 12 from Crypto.PublicKey import RSA |
| (...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 self.assertEqual(utils.get_app_version(), response['server_version']) | 530 self.assertEqual(utils.get_app_version(), response['server_version']) |
| 531 | 531 |
| 532 | 532 |
| 533 if __name__ == '__main__': | 533 if __name__ == '__main__': |
| 534 if '-v' in sys.argv: | 534 if '-v' in sys.argv: |
| 535 unittest.TestCase.maxDiff = None | 535 unittest.TestCase.maxDiff = None |
| 536 logging.basicConfig(level=logging.DEBUG) | 536 logging.basicConfig(level=logging.DEBUG) |
| 537 else: | 537 else: |
| 538 logging.basicConfig(level=logging.FATAL) | 538 logging.basicConfig(level=logging.FATAL) |
| 539 unittest.main() | 539 unittest.main() |
| OLD | NEW |