def METHOD_NAME(self):
    """
    Test args option.
    """
    shell = MagicMock()
    shell.help_api = MagicMock()
    shell.client = MagicMock()
    shell.client.call = MagicMock(return_value=["one", "two", "three"])
    shell.session = "session"
    log = MagicMock()
    out = helpers.FileHandleMock()
    with patch("spacecmd.api.open", out, create=True) as mop, \
            patch("spacecmd.api.logging", log) as mlog:
        api.do_api(shell, "call -A '[\"first\",\"second\",\"2022-05-05\",4]' -o /tmp/spacecmd.log")
    assert shell.client.call.called
    assert shell.client.call.call_args_list[0][0] == ('session', 'first', 'second',
                                                      datetime.datetime(2022, 5, 5, 0, 0),4)
    assert out._closed