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 under the Apache License, Version 2.0 that | 3 # Use of this source code is governed by the Apache v2.0 license that can be |
4 # can be found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 import hashlib | 6 import hashlib |
7 import json | 7 import json |
8 import logging | 8 import logging |
9 import os | 9 import os |
10 import sys | 10 import sys |
11 import tempfile | 11 import tempfile |
12 import unittest | 12 import unittest |
13 | 13 |
14 # net_utils adjusts sys.path. | 14 # net_utils adjusts sys.path. |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 self.assertEqual([('foo', data, True)], calls) | 249 self.assertEqual([('foo', data, True)], calls) |
250 | 250 |
251 | 251 |
252 if __name__ == '__main__': | 252 if __name__ == '__main__': |
253 fix_encoding.fix_encoding() | 253 fix_encoding.fix_encoding() |
254 if '-v' in sys.argv: | 254 if '-v' in sys.argv: |
255 unittest.TestCase.maxDiff = None | 255 unittest.TestCase.maxDiff = None |
256 logging.basicConfig( | 256 logging.basicConfig( |
257 level=(logging.DEBUG if '-v' in sys.argv else logging.ERROR)) | 257 level=(logging.DEBUG if '-v' in sys.argv else logging.ERROR)) |
258 unittest.main() | 258 unittest.main() |
OLD | NEW |