| 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 import collections | 6 import collections |
| 7 import datetime | 7 import datetime |
| 8 import logging | 8 import logging |
| 9 import os | 9 import os |
| 10 import StringIO | 10 import StringIO |
| 11 import sys | 11 import sys |
| 12 import tarfile | 12 import tarfile |
| 13 import tempfile | 13 import tempfile |
| 14 import textwrap | 14 import textwrap |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 self.assertEqual(expected, protobuf.text_format.MessageToString(msg)) | 383 self.assertEqual(expected, protobuf.text_format.MessageToString(msg)) |
| 384 | 384 |
| 385 | 385 |
| 386 if __name__ == '__main__': | 386 if __name__ == '__main__': |
| 387 if '-v' in sys.argv: | 387 if '-v' in sys.argv: |
| 388 unittest.TestCase.maxDiff = None | 388 unittest.TestCase.maxDiff = None |
| 389 logging.basicConfig(level=logging.DEBUG) | 389 logging.basicConfig(level=logging.DEBUG) |
| 390 else: | 390 else: |
| 391 logging.basicConfig(level=logging.FATAL) | 391 logging.basicConfig(level=logging.FATAL) |
| 392 unittest.main() | 392 unittest.main() |
| OLD | NEW |