| Server IP : 54.37.205.81 / Your IP : 216.73.216.76 Web Server : nginx/1.22.1 System : Linux vps-249481fa 6.1.0-50-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.176-1 (2026-07-02) x86_64 User : debian ( 1000) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/tornado/test/__pycache__/ |
Upload File : |
�
��b�H � � � d dl Z d dlZd dlZd dlmZmZmZ d dlmZm Z m
Z
mZ d dlm
Z
d dlZ G d� dej � � Z G d� dej � � Z G d � d
ej � � Z G d� dej � � Z G d
� dej � � ZdS )� N)�utf8�
native_str�
to_unicode)�Template�
DictLoader�
ParseError�Loader)�
ObjectDictc �� � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z
d � Zd
� Zd� Z
d� Zd
� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z ej d� � d� � � Zd� ZdS )�TemplateTestc �x � t d� � }| � |� d�� � d� � d S �NzHello {{ name }}!�Ben��name�
Hello Ben!�r �assertEqual�generate��self�templates �</usr/lib/python3/dist-packages/tornado/test/template_test.py�test_simplezTemplateTest.test_simple
s= � ��/�0�0������*�*��*�6�6�
�F�F�F�F�F� c � � t d� � }| � |� t d� � �� � d� � d S r �r r r r r s r �
test_byteszTemplateTest.test_bytes sC � ��/�0�0������*�*��U���*�<�<�m�L�L�L�L�Lr c �t � t d� � }| � |� � � d� � d S )Nz2 + 2 = {{ 2 + 2 }}s 2 + 2 = 4r r s r �test_expressionszTemplateTest.test_expressions s8 � ��1�2�2������*�*�,�,�l�;�;�;�;�;r c � � t d� � }| � |� t d� � �� � d� � d S )Nz Hello{# TODO i18n #} {{ name }}!r r r r r s r �test_commentzTemplateTest.test_comment sC � ��>�?�?������*�*��U���*�<�<�m�L�L�L�L�Lr c � � t ddd�� � }| � |� d� � � � � d� � d S )Nz%{% include "header.html" %}
body textzheader text)�
index.htmlzheader.htmlr$ s header text
body text�r r �loadr �r �loaders r �test_includezTemplateTest.test_include sc � ��F�,�
�
�
�
��
����K�K��%�%�.�.�0�0�2K�
�
�
�
�
r c � � t ddd�� � }| � |� d� � � � � d� � d S )Nzj<title>{% block title %}default title{% end %}</title>
<body>{% block body %}default body{% end %}</body>
zb{% extends "base.html" %}
{% block title %}page title{% end %}
{% block body %}page body{% end %}
)� base.html� page.htmlr, s1 <title>page title</title>
<body>page body</body>
r% r'