<reponame>amenezes/rabbit-client
import pytest
from cleo import CommandTester

from rabbit.__main__ import application


def test_consumer_command():
    command = application.find("consumer")
    ct = CommandTester(command)
    assert "" == ct.io.fetch_output()


def test_file_not_found_event_command():
    command = application.find("send-event")
    ct = CommandTester(command)
    with pytest.raises(SystemExit):
        ct.execute("xxx")
