File: //lib/python3/dist-packages/twisted/words/test/__pycache__/test_irc_service.cpython-38.pyc
U
W[�% � @ s� d Z ddlmZmZ ddlmZ ddlmZ ddlm Z m
Z
mZ ddlm
Z
G dd� de
�ZG d d
� d
e�ZdZG dd
� d
e
�ZdS )z5
Tests for IRC portions of L{twisted.words.service}.
� )�checkers�portal)�
proto_helpers)�irc)�InMemoryWordsRealm�
IRCFactory�IRCUser)�IRCTestCasec @ s` e Zd ZdZdd� Zdd� Zdd� Zdd � Zd
d� Zdd
� Z dd� Z
dd� Zdd� Zdd� Z
dS )�IRCUserTestsz'
Isolated tests for L{IRCUser}
c C sp t d�| _t�� | _t�| j| jg�| _| j�dd� t| j| j�| _ | j �
d�| _t�
� | _| j�| j� dS )zm
Sets up a Realm, Portal, Factory, IRCUser, Transport, and Connection
for our tests.
�example.com�john�passN)r �realmr Z'InMemoryUsernamePasswordDatabaseDontUseZcheckerr ZPortalZaddUserr �factoryZ
buildProtocol�ircUserr ZStringTransport�stringTransportZmakeConnection��self� r �E/usr/lib/python3/dist-packages/twisted/words/test/test_irc_service.py�setUp s
zIRCUserTests.setUpc C s<