Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/twisted/web/test/__pycache__/test_stan.cpython-39.pyc
Ðазад
a k�hT � @ sf d Z ddlZddlmZ ddlmZ ddlmZmZm Z m Z mZ e e ed�dd�ZG d d � d e�Z dS )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 O s t d�| i |��S )z( Produce a new tag for testing. �hello)r )r r � r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/twisted/web/test/test_stan.py�proto s r c @ s� e Zd ZdZdd�dd�Zdd�dd�Zdd�dd �Zdd�d d�Zdd�dd �Zdd�dd�Z dd�dd�Z dd�dd�Zdd�dd�Zdd�dd�Z dd�dd�Zdd�dd�ZdS )�TagTestsz Tests for L{Tag}. N�r c C s* t dd�}| �|jd� | �|ji � dS )z� Setting an attribute named C{render} will change the C{render} instance variable instead of adding an attribute. Z myRenderer��renderN)r �assertEqualr � attributes��self�tagr r r �test_renderAttribute s zTagTests.test_renderAttributec C sL | � t��}tdd� W d � n1 s*0 Y | �|jjd d� dS )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)ZassertRaises� TypeErrorr r � exception�args)r �er r r �test_renderAttributeNonString&