# Path: grazyna/plugins/python.py
# @register(cmd='pep')
# def pep(bot, number: int):
#     """show pep X link"""
#     msg = 'https://www.python.org/dev/peps/pep-{:04}/'.format(number)
#     bot.reply(msg)
# 
# Path: grazyna/test_mocks/sender.py
# class SayMessage(Message):
# 
#     def __init__(self, to, msg):
#         super().__init__('PRIVMSG', to, ':' + msg)


from grazyna.plugins.python import pep
from grazyna.test_mocks.sender import SayMessage
import pytest



@pytest.mark.asyncio
def test_pep(public_bot):
    yield from pep(public_bot, 8)
    assert public_bot.protocol.messages == [
        SayMessage(
            '#czarnobyl', 'socek: https://www.python.org/dev/peps/pep-0008/'

# Path: grazyna/plugins/python.py
# @register(cmd='pep')
# def pep(bot, number: int):
#     """show pep X link"""
#     msg = 'https://www.python.org/dev/peps/pep-{:04}/'.format(number)
#     bot.reply(msg)
# 
# Path: grazyna/test_mocks/sender.py
# class SayMessage(Message):
# 
#     def __init__(self, to, msg):
#         super().__init__('PRIVMSG', to, ':' + msg)


# Path: grazyna/tests/plugins/test_python.py
from grazyna.plugins.python import pep
from grazyna.test_mocks.sender import SayMessage
import pytest




@pytest.mark.asyncio
def test_pep(public_bot):
    yield from pep(public_bot, 8)
    assert public_bot.protocol.messages == [
        SayMessage(
            '#czarnobyl', 'socek: https://www.python.org/dev/peps/pep-0008/'

        ),