ó
    ×›‘hu	  ã                   ó   •  " S  S5      r g)c                   ób   • \ rS rSrSrSrSS jrS rS\S\	4S	 jr
S\S\	4S
 jrS rS rS rSrg)ÚCounteré   zÀa simple counter object for testing trial's doctest support

>>> c = Counter()
>>> c.value()
0
>>> c += 3
>>> c.value()
3
>>> c.incr()
>>> c.value() == 4
True
>>> c == 4
True
>>> c != 9
True

é    Nc                 ó   • Xl         X l        g )N©Ú_countÚmaxval)ÚselfÚinitialValuer	   s      ÚbC:\Users\psant\Downloads\Noiseback\school\venv\Lib\site-packages\twisted/trial/test/mockdoctest.pyÚ__init__ÚCounter.__init__   s   € Ø"ŒØ�ó    c                 óš   • U R                   b(  U R                  U-   U R                   :”  a  [        S5      eU =R                  U-  sl        U $ )z[add other to my value and return self

>>> c = Counter(100)
>>> c += 333
>>> c == 433
True
zsorry, counter got too big)r	   r   Ú
ValueError©r
   Úothers     r   Ú__iadd__ÚCounter.__iadd__!   sA   € ð �;‰;Ñ"¨¯©°uÑ)<ÀÇÁÓ(KÜÐ9Ó:Ð:à�KŠK˜5Ñ �KØˆr   r   Úreturnc                 ó    • U R                   U:H  $ )z›equality operator, compare other to my value()

>>> c = Counter()
>>> c == 0
True
>>> c += 10
>>> c.incr()
>>> c == 10   # fail this test on purpose
True

©r   r   s     r   Ú__eq__ÚCounter.__eq__/   s   € ð �{‰{˜eÑ#Ð#r   c                 ó.   • U R                  U5      (       + $ )z8inequality operator

>>> c = Counter()
>>> c != 10
True
)r   r   s     r   Ú__ne__ÚCounter.__ne__=   s   € ð —;‘;˜uÓ%Ô%Ð%r   c                 ó&   • U R                  S5        g)aÊ  increment my value by 1

>>> from twisted.trial.test.mockdoctest import Counter
>>> c = Counter(10, 11)
>>> c.incr()
>>> c.value() == 11
True
>>> c.incr()
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "twisted/trial/test/mockdoctest.py", line 51, in incr
    self.__iadd__(1)
  File "twisted/trial/test/mockdoctest.py", line 39, in __iadd__
    raise ValueError, "sorry, counter got too big"
ValueError: sorry, counter got too big
é   N)r   ©r
   s    r   ÚincrÚCounter.incrF   s   € ð" 	�‰�aÕr   c                 ó   • U R                   $ )zLreturn this counter's value

>>> c = Counter(555)
>>> c.value() == 555
True
r   r    s    r   ÚvalueÚCounter.valueY   s   € ð �{‰{Ðr   c                 ó   • g)z]i will raise an unexpected exception...
... *CAUSE THAT'S THE KINDA GUY I AM*

      >>> 1/0
N© r    s    r   ÚunexpectedExceptionÚCounter.unexpectedExceptionb   s   � r   r   )r   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   r   ÚobjectÚboolr   r   r!   r$   r(   Ú__static_attributes__r'   r   r   r   r      sM   † ñð$ €Fôòð$˜Fð $ tô $ð&˜Fð & tô &òò&õr   r   N)r   r'   r   r   Ú<module>r2      s   ð÷_ò _r   