Current File : //usr/lib/python3/dist-packages/twisted/words/test/__pycache__/test_xmlstream.cpython-312.pyc |
�
Ϫ�f� � � � d Z ddlmZ ddlmZ ddlmZ ddlmZm Z m
Z
G d� dej � Z G d� d ej e j � Z G d
� dej � Z G d� d
e� Z G d� de� Zy)z,
Tests for L{twisted.words.xish.xmlstream}.
� )�protocol)�failure)�unittest)�domish�utility� xmlstreamc �0 � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zy)�XmlStreamTestsc �� � d| _ g | _ t j � | _ | | j _ | j j
| j j _ y )Nz no reason)�connectionLostMsg�outlistr � XmlStream� transport�append�write��selfs �C/usr/lib/python3/dist-packages/twisted/words/test/test_xmlstream.py�setUpzXmlStreamTests.setUp sI � �!,������"�,�,�.���#'���� �)-���)<�)<���� � �&� c � � | j j t j t | j
� � � y)zA
Stub loseConnection because we are a transport.
N)r �connectionLostr �Failure� Exceptionr r s r �loseConnectionzXmlStreamTests.loseConnection s- � �
���%�%��O�O�I�d�&<�&<�=�>�
r c � � | j j � | j j d� | j | j d d� y)zq
Calling L{xmlstream.XmlStream.send} results in the data being written
to the transport.
s <root>r N)r �connectionMade�send�assertEqualr
r s r � test_sendzXmlStreamTests.test_send s>