OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # coding: utf-8 | 2 # coding: utf-8 |
3 # Copyright 2013 The LUCI Authors. All rights reserved. | 3 # Copyright 2013 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 itertools | 7 import itertools |
8 import logging | 8 import logging |
9 import os | 9 import os |
10 import re | 10 import re |
11 import sys | 11 import sys |
12 import unittest | 12 import unittest |
13 import urllib | 13 import urllib |
14 | 14 |
15 # Setups environment. | 15 # Setups environment. |
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
482 url, headers={'X-AppEngine-QueueName': 'bogus name'}, status=403) | 482 url, headers={'X-AppEngine-QueueName': 'bogus name'}, status=403) |
483 | 483 |
484 | 484 |
485 if __name__ == '__main__': | 485 if __name__ == '__main__': |
486 if '-v' in sys.argv: | 486 if '-v' in sys.argv: |
487 unittest.TestCase.maxDiff = None | 487 unittest.TestCase.maxDiff = None |
488 logging.basicConfig( | 488 logging.basicConfig( |
489 level=logging.DEBUG if '-v' in sys.argv else logging.CRITICAL, | 489 level=logging.DEBUG if '-v' in sys.argv else logging.CRITICAL, |
490 format='%(levelname)-7s %(filename)s:%(lineno)3d %(message)s') | 490 format='%(levelname)-7s %(filename)s:%(lineno)3d %(message)s') |
491 unittest.main() | 491 unittest.main() |
OLD | NEW |