File: //usr/lib/python3/dist-packages/twisted/internet/test/__pycache__/test_pollingfile.cpython-38.pyc
U
W[� � @ sX d Z ddlmZ ddlmZ e�� r2ddlmZ ndZG dd� de�ZedkrTde_ dS ) z-
Tests for L{twisted.internet._pollingfile}.
� )�platform)�TestCase)�_pollingfileNc @ s e Zd ZdZdd� Zdd� ZdS )�PollableWritePipeTestsz7
Tests for L{_pollingfile._PollableWritePipe}.
c C s$ t �ddd� �}| �t|jd� dS )z�
L{_pollingfile._PollableWritePipe.write} raises a C{TypeError} if an
attempt is made to append unicode data to the output buffer.
� c S s d S �N� r r r �H/usr/lib/python3/dist-packages/twisted/internet/test/test_pollingfile.py�<lambda> � z:PollableWritePipeTests.test_writeUnicode.<locals>.<lambda>�testN)r �_PollableWritePipe�assertRaises� TypeError�write��self�pr r r �test_writeUnicode s z(PollableWritePipeTests.test_writeUnicodec C s6 t �ddd� �}| �t|jdg� | �t|jd� dS )z�
L{_pollingfile._PollableWritePipe.writeSequence} raises a C{TypeError}
if unicode data is part of the data sequence to be appended to the
output buffer.
r c S s d S r r r r r r r
&