%PDF- %PDF-
Direktori : /lib/python3/dist-packages/twisted/web/test/__pycache__/ |
Current File : //lib/python3/dist-packages/twisted/web/test/__pycache__/test_stan.cpython-312.pyc |
� Ϫ�fT � �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&