def METHOD_NAME(randomstring):
    mock_channel = mock.Mock()
    queue_info = {"exchange": randomstring(), **q_info}
    rp = ResultPublisher(queue_info=queue_info)
    rp._on_channel_open(mock_channel)
    assert mock_channel.exchange_declare.called
    _a, k = mock_channel.exchange_declare.call_args
    assert k["passive"] is True, "endpoint does not create exchange"
    assert k["exchange"] == queue_info["exchange"]