OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2014 The Swarming 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 by the Apache v2.0 license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 import datetime | 6 import datetime |
7 import inspect | 7 import inspect |
8 import logging | 8 import logging |
9 import os | 9 import os |
10 import random | 10 import random |
11 import sys | 11 import sys |
12 import unittest | 12 import unittest |
(...skipping 1563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1576 actual, cursor = task_result._search_by_name('Request', cursor, 31) | 1576 actual, cursor = task_result._search_by_name('Request', cursor, 31) |
1577 self.assertEqual(0, len(actual)) | 1577 self.assertEqual(0, len(actual)) |
1578 | 1578 |
1579 | 1579 |
1580 if __name__ == '__main__': | 1580 if __name__ == '__main__': |
1581 if '-v' in sys.argv: | 1581 if '-v' in sys.argv: |
1582 unittest.TestCase.maxDiff = None | 1582 unittest.TestCase.maxDiff = None |
1583 logging.basicConfig( | 1583 logging.basicConfig( |
1584 level=logging.DEBUG if '-v' in sys.argv else logging.CRITICAL) | 1584 level=logging.DEBUG if '-v' in sys.argv else logging.CRITICAL) |
1585 unittest.main() | 1585 unittest.main() |
OLD | NEW |