OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # coding: utf-8 | 2 # coding: utf-8 |
3 # Copyright 2015 The LUCI 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 under the Apache License, Version 2.0 |
5 # found in the LICENSE file. | 5 # that can be 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 |
14 import unittest | 14 import unittest |
15 import zipfile | 15 import zipfile |
(...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
878 self.assertEqual(expected, set(z.namelist())) | 878 self.assertEqual(expected, set(z.namelist())) |
879 | 879 |
880 | 880 |
881 if __name__ == '__main__': | 881 if __name__ == '__main__': |
882 if '-v' in sys.argv: | 882 if '-v' in sys.argv: |
883 unittest.TestCase.maxDiff = None | 883 unittest.TestCase.maxDiff = None |
884 logging.basicConfig( | 884 logging.basicConfig( |
885 level=logging.DEBUG if '-v' in sys.argv else logging.CRITICAL, | 885 level=logging.DEBUG if '-v' in sys.argv else logging.CRITICAL, |
886 format='%(levelname)-7s %(filename)s:%(lineno)3d %(message)s') | 886 format='%(levelname)-7s %(filename)s:%(lineno)3d %(message)s') |
887 unittest.main() | 887 unittest.main() |
OLD | NEW |