'An Ironicclient is called with a keystoneauth1 Session'

@mock.patch.object(keystoneauth1.session, 'Session')
@mock.patch.object(ironic_client, 'get_client')
def test__get_client_session(self, mock_ir_cli, mock_session):

    mock_session.return_value = 'session'
    ironicclient = client_wrapper.IronicClientWrapper()
    ironicclient.call('node.list')
    expected = {'session': 'session', 'max_retries': CONF.ironic.api_max_retries, 'retry_interval': CONF.ironic.api_retry_interval, 'os_ironic_api_version': '1.32', 'ironic_url': None}
    mock_ir_cli.assert_called_once_with(1, **expected)
