0x1949 Team - FAZEMRX - MANAGER
Edit File: test_flatten.cpython-310.pyc
o �brV � @ sR d Z ddlZddlZddlZddlmZ ddlmZ ddlm Z ddl mZmZm Z mZmZmZ ddlmZ ddlmZ dd lmZmZmZmZmZ dd lmZ ddlmZ ddlm Z dd l!m"Z"m#Z#m$Z$ ddl%m&Z&m'Z'm(Z( ddl)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0m1Z1m2Z2m3Z3m4Z4 ddl5m6Z6 G dd� de6e�Z7dd� j8j9Z:G dd� de �Z;dS )zf Tests for the flattening portion of L{twisted.web.template}, implemented in L{twisted.web._flatten}. � N)�OrderedDict��dedent)�FunctionType)�Callable�Dict�List�NoReturn�Optional�cast)�XML)�implementer)�CancelledError�Deferred� gatherResults�passthru�succeed)�Failure)�XMLAssertionMixin)�SynchronousTestCase)�FlattenerError�UnfilledSlot�UnsupportedType)�IRenderable�IRequest�ITemplateLoader)�CDATA�CharRef�Comment�Element�Flattenable�Tag� TagLoader� flattenString�renderer�slot�tags)�FlattenTestCasec @ sz e Zd ZdZdBdd�ZdBdd�ZdBdd �ZdBd d�ZdBdd �Zde e gef de egef ddfdd�Z dBdd�ZdBdd�ZdBdd�ZdBdd�ZdBdd�ZdBdd�Zde egef ddfdd�ZdBd d!�ZdBd"d#�ZdBd$d%�ZdBd&d'�Zdeee fd(d)�ZdBd*d+�ZdBd,d-�ZdBd.d/�ZdBd0d1�Z dBd2d3�Z!dBd4d5�Z"dBd6d7�Z#dBd8d9�Z$dBd:d;�Z%dBd<d=�Z&dBd>d?�Z'dBd@dA�Z(dS )C�SerializationTestsz. Tests for flattening various things. �returnNc C s | � tjt�d�dd�d� dS )z: Test that nested tags flatten correctly. �42�there)�his'