OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # coding: utf-8 | 2 # coding: utf-8 |
3 # Copyright 2013 The Swarming 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 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 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 |
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 url, headers={'X-AppEngine-QueueName': 'bogus name'}, status=403) | 498 url, headers={'X-AppEngine-QueueName': 'bogus name'}, status=403) |
499 | 499 |
500 | 500 |
501 if __name__ == '__main__': | 501 if __name__ == '__main__': |
502 if '-v' in sys.argv: | 502 if '-v' in sys.argv: |
503 unittest.TestCase.maxDiff = None | 503 unittest.TestCase.maxDiff = None |
504 logging.basicConfig( | 504 logging.basicConfig( |
505 level=logging.DEBUG if '-v' in sys.argv else logging.CRITICAL, | 505 level=logging.DEBUG if '-v' in sys.argv else logging.CRITICAL, |
506 format='%(levelname)-7s %(filename)s:%(lineno)3d %(message)s') | 506 format='%(levelname)-7s %(filename)s:%(lineno)3d %(message)s') |
507 unittest.main() | 507 unittest.main() |
OLD | NEW |