OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # coding=utf-8 | 2 # coding=utf-8 |
3 # Copyright 2015 The Swarming 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 by the Apache v2.0 license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 import datetime | 7 import datetime |
8 import json | 8 import json |
9 import logging | 9 import logging |
10 import os | 10 import os |
11 import random | 11 import random |
12 import sys | 12 import sys |
13 import unittest | 13 import unittest |
(...skipping 1231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1245 self.assertEqual(expected, response.json) | 1245 self.assertEqual(expected, response.json) |
1246 | 1246 |
1247 | 1247 |
1248 if __name__ == '__main__': | 1248 if __name__ == '__main__': |
1249 if '-v' in sys.argv: | 1249 if '-v' in sys.argv: |
1250 unittest.TestCase.maxDiff = None | 1250 unittest.TestCase.maxDiff = None |
1251 logging.basicConfig(level=logging.DEBUG) | 1251 logging.basicConfig(level=logging.DEBUG) |
1252 else: | 1252 else: |
1253 logging.basicConfig(level=logging.CRITICAL) | 1253 logging.basicConfig(level=logging.CRITICAL) |
1254 unittest.main() | 1254 unittest.main() |
OLD | NEW |