File: //usr/lib/python3/dist-packages/twisted/web/test/__pycache__/test_stan.cpython-38.pyc
U
W[# � @ s` d Z ddlmZmZ ddlmZmZmZmZ ddl m
Z
ddlmZ dd� Z
G dd � d e
�Zd
S )zW
Tests for L{twisted.web._stan} portion of the L{twisted.web.template}
implementation.
� )�absolute_import�division)�Comment�CDATA�CharRef�Tag)�TestCase)�_PY3c O s t d�| |�S )z(
Produce a new tag for testing.
�hello)r )�a�kw� r
�</usr/lib/python3/dist-packages/twisted/web/test/test_stan.py�proto s r c @ s~ e Zd ZdZdd� Zdd� Zdd� Zdd � Zd
d� Zdd
� Z dd� Z
dd� Zdd� Ze
sfde_de_nde _de
_dd� ZdS )�TagTestsz
Tests for L{Tag}.
c C s t � }| �||jdd�� dS )z0
L{Tag.fillSlots} returns self.
�test)r N)r �assertIdentical� fillSlots��self�tagr
r
r �test_fillSlots s zTagTests.test_fillSlotsc C s� dg}t d|ddd�}|jdd� d|_d |_d
|_|jdd�}| �|jd
d� | �|j|j� | �|j d|g� | �|j |j � | �
|j d |� | �|j|j� | �|j|j� | �|jd� | �|jd � | �|jd
� | �|jd� dS )z�
L{Tag.clone} copies all attributes and children of a tag, including its
render attribute. If the shallow flag is C{False}, that's where it
stops.
�
inner list�How are you�world�
aSampleMethod�r
�render�bar�Zfoo�foo/bar� � F)Zdeepr
� N�
r r �filenameZ
lineNumberZcolumnNumber�clone�assertEqual�
attributesZassertNotIdentical�childrenr ZslotDatar )r � innerListr r&