| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 import json | 6 import json |
| 7 import logging |
| 7 import os | 8 import os |
| 9 import sys |
| 8 import tempfile | 10 import tempfile |
| 9 import unittest | 11 import unittest |
| 10 | 12 |
| 11 import isolate | 13 import isolate |
| 12 | 14 |
| 13 ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) | 15 ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) |
| 14 | 16 |
| 15 | 17 |
| 16 class Isolate(unittest.TestCase): | 18 class Isolate(unittest.TestCase): |
| 17 def setUp(self): | 19 def setUp(self): |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 u'foo': u'bar', | 84 u'foo': u'bar', |
| 83 u'variables': { | 85 u'variables': { |
| 84 'expected': 'very', | 86 'expected': 'very', |
| 85 u'unexpected': u'seriously', | 87 u'unexpected': u'seriously', |
| 86 }, | 88 }, |
| 87 } | 89 } |
| 88 self._run_process_options(values, {'expected': 'very'}, expected_data) | 90 self._run_process_options(values, {'expected': 'very'}, expected_data) |
| 89 | 91 |
| 90 | 92 |
| 91 if __name__ == '__main__': | 93 if __name__ == '__main__': |
| 94 logging.basicConfig( |
| 95 level=logging.DEBUG if '-v' in sys.argv else logging.ERROR, |
| 96 format='%(levelname)5s %(filename)15s(%(lineno)3d): %(message)s') |
| 92 unittest.main() | 97 unittest.main() |
| OLD | NEW |