| 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 # Disable 'Method could be a function.' | 6 # Disable 'Method could be a function.' |
| 7 # pylint: disable=R0201 | 7 # pylint: disable=R0201 |
| 8 | 8 |
| 9 import json | 9 import json |
| 10 import logging | 10 import logging |
| 11 import sys | 11 import sys |
| 12 import unittest | 12 import unittest |
| 13 | 13 |
| 14 from test_support import test_env | 14 from test_support import test_env |
| (...skipping 2004 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2019 self.assertEqual( | 2019 self.assertEqual( |
| 2020 'http://locahost:1234/some/method?arg=1', response.headers['Location']) | 2020 'http://locahost:1234/some/method?arg=1', response.headers['Location']) |
| 2021 | 2021 |
| 2022 | 2022 |
| 2023 if __name__ == '__main__': | 2023 if __name__ == '__main__': |
| 2024 if '-v' in sys.argv: | 2024 if '-v' in sys.argv: |
| 2025 unittest.TestCase.maxDiff = None | 2025 unittest.TestCase.maxDiff = None |
| 2026 logging.basicConfig( | 2026 logging.basicConfig( |
| 2027 level=logging.DEBUG if '-v' in sys.argv else logging.ERROR) | 2027 level=logging.DEBUG if '-v' in sys.argv else logging.ERROR) |
| 2028 unittest.main() | 2028 unittest.main() |
| OLD | NEW |