+
    Dfju	                          ! R  R4      t R# )c                   n   a  ] tR t^t o Rt^ tRR ltR tV 3R lR ltV 3R lR lt	R	 t
R
 tR tRtV tR# )Counterza 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                    Wn         W n        R # )N_countmaxval)selfinitialValuer   s   &&&@/usr/lib/python3/dist-packages/twisted/trial/test/mockdoctest.py__init__Counter.__init__   s    "    c                    V P                   e.   V P                  V,           V P                   8  d   \        R4      hV ;P                  V,          un        V # )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::KK5 Kr   c                &   < V ^8  d   QhRS[ RS[/#    r   returnobjectbool)format__classdict__s   "r
   __annotate__Counter.__annotate__/   s     $ $F $t $r   c                     V P                   V8H  # )zequality 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                &   < V ^8  d   QhRS[ RS[/# r   r   )r   r   s   "r
   r   r   =   s     & &F &t &r   c                .    V P                  V4      '       * # )z8inequality operator

>>> c = Counter()
>>> c != 10
True
)r!   r   s   &&r
   __ne__Counter.__ne__=   s     ;;u%%%r   c                (    V P                  ^4       R# )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                    V P                   # )zLreturn this counter's value

>>> c = Counter(555)
>>> c.value() == 555
True
r    r(   s   &r
   valueCounter.valueY   s     {{r   c                    R# )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   )    N)__name__
__module____qualname____firstlineno____doc__r   r   r   r!   r%   r)   r,   r0   __static_attributes____classdictcell__)r   s   @r
   r   r      sC     $ F$ $& && r   r   N)r   r/   r   r
   <module>r:      s   _ _r   