File: //usr/lib/python3/dist-packages/twisted/internet/test/__pycache__/test_pollingfile.cpython-310.pyc
o
�b � @ sd d Z ddlmZ ddlmZ ddlmZ e�� rddlm Z ndZ ee du d�G dd � d e��Z
dS )
z-
Tests for L{twisted.internet._pollingfile}.
� )�skipIf)�platform)�TestCase)�_pollingfileNzTest will run only on Windows.c @ 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 � 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 r r r
r
r
r
r r '