OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2013 The Swarming Authors. All rights reserved. | 2 # Copyright 2013 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 cStringIO as StringIO | 6 import cStringIO as StringIO |
7 import logging | 7 import logging |
8 import os | 8 import os |
9 import subprocess | 9 import subprocess |
10 import sys | 10 import sys |
11 import tempfile | 11 import tempfile |
12 import unittest | 12 import unittest |
13 import zipfile | 13 import zipfile |
14 | 14 |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 self.temp_dir, | 282 self.temp_dir, |
283 '321690737f78d081937f88c3fd0e625dd48ae07d-cert.pem') | 283 '321690737f78d081937f88c3fd0e625dd48ae07d-cert.pem') |
284 self.assertEqual(expected, actual) | 284 self.assertEqual(expected, actual) |
285 | 285 |
286 | 286 |
287 if __name__ == '__main__': | 287 if __name__ == '__main__': |
288 fix_encoding.fix_encoding() | 288 fix_encoding.fix_encoding() |
289 VERBOSE = '-v' in sys.argv | 289 VERBOSE = '-v' in sys.argv |
290 logging.basicConfig(level=logging.DEBUG if VERBOSE else logging.ERROR) | 290 logging.basicConfig(level=logging.DEBUG if VERBOSE else logging.ERROR) |
291 unittest.main() | 291 unittest.main() |
OLD | NEW |