def _x_open(self, virtual_host, capabilities='<STR_LIT>'):
args = AMQPWriter()<EOL>args.write_shortstr(virtual_host)<EOL>args.write_shortstr(capabilities)<EOL>args.write_bit(False)<EOL>self._send_method((<NUM_LIT:10>, <NUM_LIT>), args)<EOL>return self.wait(allowed_methods=[<EOL>(<NUM_LIT:10>, <NUM_LIT>),    <EOL>])<EOL>
Open connection to virtual host

        This method opens a connection to a virtual host, which is a
        collection of resources, and acts to separate multiple
        application domains within a server.

        RULE:

            The client MUST open the context before doing any work on
            the connection.

        PARAMETERS:
            virtual_host: shortstr

                virtual host name

                The name of the virtual host to work with.

                RULE:

                    If the server supports multiple virtual hosts, it
                    MUST enforce a full separation of exchanges,
                    queues, and all associated entities per virtual
                    host. An application, connected to a specific
                    virtual host, MUST NOT be able to access resources
                    of another virtual host.

                RULE:

                    The server SHOULD verify that the client has
                    permission to access the specified virtual host.

                RULE:

                    The server MAY configure arbitrary limits per
                    virtual host, such as the number of each type of
                    entity that may be used, per connection and/or in
                    total.

            capabilities: shortstr

                required capabilities

                The client may specify a number of capability names,
                delimited by spaces.  The server can use this string
                to how to process the client's connection request.