Awesome IRC bot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
394 B

import pytest
from tests.lib import * # NOQA - fixtures
@pytest.fixture
def googbot(fakebot):
"""
Provide a bot loaded with the LMGTFY module
"""
fakebot.loadmodule("LMGTFY")
return fakebot
def test_lmgtfy_basic(googbot):
googbot.feed_line(".lmgtfy foobar asdf")
googbot.act_PRIVMSG.assert_called_once_with('#test', 'chatter: http://lmgtfy.com/?q=foobar+asdf')