def test_run_executable(self): with mock.patch('kb_python.dry.utils.print') as p: self.assertIsNone(utils.run_executable(['1', '2', 3])) p.assert_called_once_with('1 2 3')
def test_run_executable_quiet(self): with mock.patch('kb_python.dry.utils.print') as p: self.assertIsNone(utils.run_executable(['1', '2', 3], quiet=True)) p.assert_not_called()