Current File : //usr/lib/python3/dist-packages/twisted/words/test/__pycache__/test_xishutil.cpython-312.pyc |
�
Ϫ�fl$ � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl m
Z
G d� d� Z G d � d
� Z G d� dej � Z G d
� dej � Zy)z+
Test cases for twisted.words.xish.utility
� )�OrderedDict)�unittest)�utility)�Element)�EventDispatcherc � � e Zd ZdZd� Zd� Zy)�CallbackTrackerz�
Test helper for tracking callbacks.
Increases a counter on each call to L{call} and stores the object
passed in the call.
c � � d| _ d | _ y )Nr ��called�obj��selfs �B/usr/lib/python3/dist-packages/twisted/words/test/test_xishutil.py�__init__zCallbackTracker.__init__ s � ������� c �: � | j dz | _ || _ y )N� r )r r
s r �callzCallbackTracker.call s � ��k�k�A�o�����r N)�__name__�
__module__�__qualname__�__doc__r r � r r r r s � ���r r c �( � e Zd ZdZd� Zd� Zd� Zd� Zy)�OrderedCallbackTrackerz=
Test helper for tracking callbacks and their order.
c � � g | _ y �N)�callListr s r r zOrderedCallbackTracker.__init__'