U
    ʼb2                     @   s   d dl mZ dd ZdS )   )ReceiveBufferc                  C   s  t  } | rtt| dkstt| dks.t| d7 } | s>tt| dksNtt| dks^t|   t| dksvt| ddkst| stt| dkstt| dkst|   t| dkst| d	dkstt| dkst| d	d kst| rt| d
7 } | ddks"tt| dks4t| dd ksHtt| dksZt| d7 } | ddksvtt| dkst| d7 } | dd kst| d7 } | ddkstt| dkst| d7 } |  }|dddgkstt| dkst|  d kst| d7 } |  d ks4t| ddksHt| rRt| d7 } |  g ksltt| dks~td S )N        s   123   r   s   12      3
   s   12345a6789aa   as   12345as   6789aas   aaas   a12s   6789aaas   345s
   6789aaa123s   123456789aaas   
a: b
foo:bar

trailings   a: bs   foo:bars   trailings   
d   s   trailing
s
   
trailing)r   AssertionErrorlenbytescompressZmaybe_extract_at_mostZmaybe_extract_until_nextZmaybe_extract_lines)blines r   @/tmp/pip-unpacked-wheel-rko__zic/h11/tests/test_receivebuffer.pytest_receivebuffer   sZ    

r   N)Z_receivebufferr   r   r   r   r   r   <module>   s   