OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # coding=utf-8 | 2 # coding=utf-8 |
3 # Copyright 2015 The LUCI Authors. All rights reserved. | 3 # Copyright 2015 The LUCI Authors. All rights reserved. |
4 # Use of this source code is governed by the Apache v2.0 license that can be | 4 # Use of this source code is governed under the Apache License, Version 2.0 |
5 # found in the LICENSE file. | 5 # that can be found in the LICENSE file. |
6 | 6 |
7 import base64 | 7 import base64 |
8 import datetime | 8 import datetime |
9 import json | 9 import json |
10 import logging | 10 import logging |
11 import os | 11 import os |
12 import random | 12 import random |
13 import sys | 13 import sys |
14 import unittest | 14 import unittest |
15 | 15 |
(...skipping 1550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1566 self.assertEqual(expected, response.json) | 1566 self.assertEqual(expected, response.json) |
1567 | 1567 |
1568 | 1568 |
1569 if __name__ == '__main__': | 1569 if __name__ == '__main__': |
1570 if '-v' in sys.argv: | 1570 if '-v' in sys.argv: |
1571 unittest.TestCase.maxDiff = None | 1571 unittest.TestCase.maxDiff = None |
1572 logging.basicConfig(level=logging.DEBUG) | 1572 logging.basicConfig(level=logging.DEBUG) |
1573 else: | 1573 else: |
1574 logging.basicConfig(level=logging.CRITICAL) | 1574 logging.basicConfig(level=logging.CRITICAL) |
1575 unittest.main() | 1575 unittest.main() |
OLD | NEW |