| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2014 The LUCI 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 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 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 |
| 13 | 13 |
| 14 import test_env | 14 import test_env |
| (...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 self.assertEqual(utils.get_app_version(), response['server_version']) | 532 self.assertEqual(utils.get_app_version(), response['server_version']) |
| 533 | 533 |
| 534 | 534 |
| 535 if __name__ == '__main__': | 535 if __name__ == '__main__': |
| 536 if '-v' in sys.argv: | 536 if '-v' in sys.argv: |
| 537 unittest.TestCase.maxDiff = None | 537 unittest.TestCase.maxDiff = None |
| 538 logging.basicConfig(level=logging.DEBUG) | 538 logging.basicConfig(level=logging.DEBUG) |
| 539 else: | 539 else: |
| 540 logging.basicConfig(level=logging.FATAL) | 540 logging.basicConfig(level=logging.FATAL) |
| 541 unittest.main() | 541 unittest.main() |
| OLD | NEW |