@asyncio.coroutine<EOL>def connect_and_open_channel(host='<STR_LIT:localhost>',<EOL>port=<NUM_LIT>,<EOL>username='<STR_LIT>', password='<STR_LIT>',<EOL>virtual_host='<STR_LIT:/>',<EOL>on_connection_close=None, *,<EOL>loop=None, **kwargs):
connection = yield from connect(host, port, username, password, virtual_host, on_connection_close, loop=loop, **kwargs)<EOL>channel = yield from connection.open_channel()<EOL>return connection, channel<EOL>
Connect to an AMQP server and open a channel on the connection.
This function is a :ref:`coroutine <coroutine>`.

Parameters of this function are the same as :func:`connect`.

:return: a tuple of ``(connection, channel)``.

Equivalent to::

    connection = yield from connect(host, port, username, password, virtual_host, on_connection_close, loop=loop, **kwargs)
    channel = yield from connection.open_channel()
    return connection, channel