ó
    Ö›‘h  ã                   ó‚   • S r SSKJrJr  SSKJr  SSKJr  SSKJ	r	  SSK
Jr  SSKJrJr   " S	 S
\	R                  5      rg)z+
Test cases for L{twisted.logger._buffer}.
é    )ÚListÚcast)ÚBrokenMethodImplementation)ÚverifyObject)Úunittesté   )ÚLimitedHistoryLogObserver)ÚILogObserverÚLogEventc                   ó6   • \ rS rSrSrSS jrSS jrSS jrSrg)	ÚLimitedHistoryLogObserverTestsé   z)
Tests for L{LimitedHistoryLogObserver}.
Nc                 óŒ   • [        S5      n [        [        U5        g! [         a  nU R	                  U5         SnAgSnAff = f)z8
L{LimitedHistoryLogObserver} provides L{ILogObserver}.
r   N)r	   r   r
   r   Úfail)ÚselfÚobserverÚes      ÚcC:\Users\psant\Downloads\Noiseback\school\venv\Lib\site-packages\twisted/logger/test/test_buffer.pyÚtest_interfaceÚ-LimitedHistoryLogObserverTests.test_interface   s:   € ô -¨QÓ/ˆð	Üœ xÕ0øÜ)ó 	Ø�I‰I�a�L‰Lûð	ús   � ž
A¨>¾Ac                 ó  • Sn[        US-  5       Vs/ s H  n[        US9PM     nn[        U5      nU H  nU" U5        M     / nUR                  [	        [
        UR                  5      5        U R                  X65        gs  snf )zI
L{LimitedHistoryLogObserver} saves history in the order it is received.
é   r   ©ÚnN©ÚrangeÚdictr	   ÚreplayTor   r
   ÚappendÚassertEqual©r   Úsizer   Úeventsr   ÚeventÚ	outEventss          r   Ú
test_orderÚ)LimitedHistoryLogObserverTests.test_order!   s|   € ð ˆÜ%*¨4°1©9Ô%5Ó6Ò%5 ”$˜”)Ñ%5ˆÐ6Ü,¨TÓ2ˆãˆEÙ�UŽOñ ð %'ˆ	Ø×Ñœ$œ|¨Y×-=Ñ-=Ó>Ô?Ø×Ñ˜Õ+ùò 7s   “Bc                 ó  • Sn[        US-  5       Vs/ s H  n[        US9PM     nn[        U5      nU H  nU" U5        M     / nUR                  [	        [
        UR                  5      5        U R                  X1* S U5        gs  snf )zq
When more events than a L{LimitedHistoryLogObserver}'s maximum size are
buffered, older events will be dropped.
r   r   r   Nr   r!   s          r   Ú
test_limitÚ)LimitedHistoryLogObserverTests.test_limit0   s�   € ð
 ˆÜ%*¨4°!©8¤_Ó5¢_ ”$˜”)¡_ˆÐ5Ü,¨TÓ2ˆãˆEÙ�UŽOñ ð %'ˆ	Ø×Ñœ$œ|¨Y×-=Ñ-=Ó>Ô?Ø×Ñ˜  ˜¨Õ3ùò 6s   “B© )ÚreturnN)	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r&   r)   Ú__static_attributes__r+   ó    r   r   r      s   † ñôô,÷4r3   r   N)r1   Útypingr   r   Úzope.interface.exceptionsr   Úzope.interface.verifyr   Útwisted.trialr   Ú_bufferr	   Ú_interfacesr
   r   ÚTestCaser   r+   r3   r   Ú<module>r;      s0   ðñ÷ å @Ý .å "Ý /ß 0ô,4 X×%6Ñ%6õ ,4r3   