| 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 base64 | 7 import base64 |
| 8 import datetime | 8 import datetime |
| 9 import logging | 9 import logging |
| 10 import os | 10 import os |
| 11 import random | 11 import random |
| 12 import StringIO | 12 import StringIO |
| 13 import sys | 13 import sys |
| (...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 815 self.assertEqual(expected, set(z.namelist())) | 815 self.assertEqual(expected, set(z.namelist())) |
| 816 | 816 |
| 817 | 817 |
| 818 if __name__ == '__main__': | 818 if __name__ == '__main__': |
| 819 if '-v' in sys.argv: | 819 if '-v' in sys.argv: |
| 820 unittest.TestCase.maxDiff = None | 820 unittest.TestCase.maxDiff = None |
| 821 logging.basicConfig( | 821 logging.basicConfig( |
| 822 level=logging.DEBUG if '-v' in sys.argv else logging.CRITICAL, | 822 level=logging.DEBUG if '-v' in sys.argv else logging.CRITICAL, |
| 823 format='%(levelname)-7s %(filename)s:%(lineno)3d %(message)s') | 823 format='%(levelname)-7s %(filename)s:%(lineno)3d %(message)s') |
| 824 unittest.main() | 824 unittest.main() |
| OLD | NEW |