%PDF- %PDF-
Direktori : /lib/python3/dist-packages/twisted/internet/test/__pycache__/ |
Current File : //lib/python3/dist-packages/twisted/internet/test/__pycache__/test_filedescriptor.cpython-312.pyc |
� Ϫ�f� � �z � d Z ddlmZ ddlmZ ddlmZ ddlmZ G d� de� Z G d� d e� Z G d � de� Zy) zA Whitebox tests for L{twisted.internet.abstract.FileDescriptor}. � )�verifyClass)�FileDescriptor)� IPushProducer)�SynchronousTestCasec �, � e Zd ZdZdZd� Zd� Zd� Zd� Zy)� MemoryFilea- A L{FileDescriptor} customization which writes to a Python list in memory with certain limitations. @ivar _written: A C{list} of C{bytes} which have been accepted as written. @ivar _freeSpace: A C{int} giving the number of bytes which will be accepted by future writes. Tc �^ � t j | t � �� g | _ d| _ y )N��reactorr )r �__init__�object�_written� _freeSpace��selfs �K/usr/lib/python3/dist-packages/twisted/internet/test/test_filedescriptor.pyr zMemoryFile.__init__ s"