| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # coding=utf-8 | 2 # coding=utf-8 |
| 3 # Copyright 2014 The LUCI Authors. All rights reserved. | 3 # Copyright 2014 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 datetime | 7 import datetime |
| 8 import logging | 8 import logging |
| 9 import sys | 9 import sys |
| 10 import unittest | 10 import unittest |
| 11 | 11 |
| 12 from test_support import test_env | 12 from test_support import test_env |
| 13 test_env.setup_test_env() | 13 test_env.setup_test_env() |
| 14 | 14 |
| 15 from components.ereporter2 import logscraper | 15 from components.ereporter2 import logscraper |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 self.assertEqual(range(5), l.head) | 210 self.assertEqual(range(5), l.head) |
| 211 self.assertEqual(range(6, 16), list(l.tail)) | 211 self.assertEqual(range(6, 16), list(l.tail)) |
| 212 | 212 |
| 213 | 213 |
| 214 if __name__ == '__main__': | 214 if __name__ == '__main__': |
| 215 if '-v' in sys.argv: | 215 if '-v' in sys.argv: |
| 216 unittest.TestCase.maxDiff = None | 216 unittest.TestCase.maxDiff = None |
| 217 logging.basicConfig( | 217 logging.basicConfig( |
| 218 level=logging.DEBUG if '-v' in sys.argv else logging.ERROR) | 218 level=logging.DEBUG if '-v' in sys.argv else logging.ERROR) |
| 219 unittest.main() | 219 unittest.main() |
| OLD | NEW |