# Path: grazyna/plugins/lmgtfy.py
# @register(cmd='lmgtfy')
# def lmgtfy(bot, query):
#     """let me google that for you"""
# 
#     url = BASE_URL + quote(query)
#     bot.say(url)
# 
# Path: grazyna/test_mocks/sender.py
# class SayMessage(Message):
# 
#     def __init__(self, to, msg):
#         super().__init__('PRIVMSG', to, ':' + msg)


from grazyna.plugins.lmgtfy import lmgtfy
from grazyna.test_mocks.sender import SayMessage
import pytest



@pytest.mark.asyncio
def test_lmgtfy(public_bot):
    yield from lmgtfy(public_bot, 'socek klocek')
    assert public_bot.protocol.messages == [

# Path: grazyna/plugins/lmgtfy.py
# @register(cmd='lmgtfy')
# def lmgtfy(bot, query):
#     """let me google that for you"""
# 
#     url = BASE_URL + quote(query)
#     bot.say(url)
# 
# Path: grazyna/test_mocks/sender.py
# class SayMessage(Message):
# 
#     def __init__(self, to, msg):
#         super().__init__('PRIVMSG', to, ':' + msg)


# Path: grazyna/tests/plugins/test_lmgtfy.py
from grazyna.plugins.lmgtfy import lmgtfy
from grazyna.test_mocks.sender import SayMessage
import pytest




@pytest.mark.asyncio
def test_lmgtfy(public_bot):
    yield from lmgtfy(public_bot, 'socek klocek')
    assert public_bot.protocol.messages == [

        SayMessage('#czarnobyl', 'http://lmgtfy.com/?q=socek%20klocek'),