| OLD | NEW |
| (Empty) | |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 import os |
| 6 import unittest |
| 7 |
| 8 import infra.tools.new_tool.__main__ as new_tool_main |
| 9 import infra_libs |
| 10 |
| 11 |
| 12 class TestMain(unittest.TestCase): |
| 13 def test_run_main(self): |
| 14 with infra_libs.temporary_directory(prefix='new-tool-test-') as tempdir: |
| 15 new_tool_main.main(['whatever_tool', '--base-dir', tempdir]) |
| 16 self.assertTrue(os.path.isdir(os.path.join(tempdir, 'whatever_tool'))) |
| OLD | NEW |