def test_jsonrpc_protocol_specific_methods_invalid_method(live_server):

    c = HTTPClient(live_server.url + '/json-only/')

    # method_y is available only via XML-RPC
    with pytest.raises(ReceivedErrorResponse) as excinfo:
        c.method_y()

    assert 'Method not found: method_y' in excinfo.value.message
    assert excinfo.value.code == RPC_METHOD_NOT_FOUND