pyircbot/tests/modules/test_ascii.py

14 lines
269 B
Python
Raw Normal View History

2017-11-27 19:04:22 -08:00
import pytest
from tests.lib import * # NOQA - fixtures
@pytest.fixture
def bot(fakebot):
fakebot.loadmodule("ASCII")
return fakebot
def test_ascii(bot):
bot.feed_line(".ascii test")
bot.act_PRIVMSG.assert_called_once_with('#test', 'hello world!')