(cli_input, cli_runner, capture_function)
| 24 | |
| 25 | |
| 26 | def get_cli_result(cli_input, cli_runner, capture_function): |
| 27 | |
| 28 | cli_args = cli_input.split() |
| 29 | command = cli_args[0] |
| 30 | assert command == "raiden" |
| 31 | call_args = cli_args[1:] or None |
| 32 | |
| 33 | with mock.patch(capture_function, autospec=True): |
| 34 | result = cli_runner.invoke(cli.run, call_args) |
| 35 | return result |
| 36 | |
| 37 | |
| 38 | def assert_invoked_kwargs( |