| Server IP : 139.59.63.204 / Your IP : 216.73.217.62 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ubuntu-s-1vcpu-1gb-blr1-01 6.8.0-110-generic #110-Ubuntu SMP PREEMPT_DYNAMIC Thu Mar 19 15:09:20 UTC 2026 x86_64 User : root ( 0) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/twisted/web/test/__pycache__/ |
Upload File : |
�
ojT � �n � d Z ddlZddlmZ ddlmZ ddlmZmZm Z m
Z
mZ de
de
defd �Z G d
� de� Z
y)zW
Tests for L{twisted.web._stan} portion of the L{twisted.web.template}
implementation.
� N)�NoReturn)�TestCase)�CDATA�CharRef�Comment�Flattenable�Tag�a�kw�returnc �$ � t d� | i |��S )z(
Produce a new tag for testing.
�hello)r )r
r s �</usr/lib/python3/dist-packages/twisted/web/test/test_stan.py�protor s � � �3�w�<��!�b�!�!� c �p � e Zd ZdZdd�Zdd�Zdd�Zdd�Zdd�Zdd�Z dd �Z
dd
�Zdd�Zdd�Z
dd
�Zdd�Zy)�TagTestsz
Tests for L{Tag}.
Nc � � t d�� }| j |j d� | j |j i � y)z�
Setting an attribute named C{render} will change the C{render} instance
variable instead of adding an attribute.
�
myRenderer��renderN)r �assertEqualr �
attributes��self�tags r �test_renderAttributezTagTests.test_renderAttribute s6 � �
�<�(��������\�2��������,r c �� � | j t � 5 }t d�� ddd� | j j j
d d� y# 1 sw Y �3xY w)z�
Attempting to set an attribute named C{render} to something other than
a string will raise L{TypeError}.
�S r Nr z0Value for "render" attribute must be str, got 83)�assertRaises� TypeErrorr r � exception�args)r �es r �test_renderAttributeNonStringz&TagTests.test_renderAttributeNonString&