# Path: grazyna/auths.py
# class FreenodeAuth(AbstractAuth):
#     passwd = None
# 
#     def __init__(self, passwd):
#         self.passwd = passwd
# 
#     def auth(self, protocol):
#         protocol.say('nickserv', 'identify %s' % self.passwd)
# 
# Path: grazyna/test_mocks/sender.py
# class SayMessage(Message):
# 
#     def __init__(self, to, msg):
#         super().__init__('PRIVMSG', to, ':' + msg)


from grazyna.auths import FreenodeAuth
from grazyna.test_mocks.sender import SayMessage


def test_freenode_auth(protocol):
    auth = FreenodeAuth('klocek')
    auth.auth(protocol)
    assert protocol.messages == [

# Path: grazyna/auths.py
# class FreenodeAuth(AbstractAuth):
#     passwd = None
# 
#     def __init__(self, passwd):
#         self.passwd = passwd
# 
#     def auth(self, protocol):
#         protocol.say('nickserv', 'identify %s' % self.passwd)
# 
# Path: grazyna/test_mocks/sender.py
# class SayMessage(Message):
# 
#     def __init__(self, to, msg):
#         super().__init__('PRIVMSG', to, ':' + msg)


# Path: grazyna/tests/auths/test_freenode_auth.py
from grazyna.auths import FreenodeAuth
from grazyna.test_mocks.sender import SayMessage



def test_freenode_auth(protocol):
    auth = FreenodeAuth('klocek')
    auth.auth(protocol)
    assert protocol.messages == [

        SayMessage('nickserv', 'identify klocek'),