Current File : //proc/self/root/lib/python3/dist-packages/twisted/web/test/__pycache__/test_static.cpython-312.pyc |
�
Ϫ�fe
� �� � d Z ddlZddlZddlZddlZddlZddlZddlZddlm Z
ddlmZ ddl
mZ ddlmZmZ ddlmZmZ ddlmZ dd lmZ dd
lmZ ddlmZ ddlmZmZm Z m!Z! dd
l"m#Z# ddl$m%Z% ddl&m'Z' ddl(m)Z) G d� de� Z* G d� de� Z+ G d� de� Z, G d� de� Z- G d� de� Z. G d� de� Z/ G d� de� Z0 G d� d e� Z1 G d!� d"e� Z2 G d#� d$e� Z3 G d%� d&e� Z4y)'z"
Tests for L{twisted.web.static}.
� N)�BytesIO)�skipIf)�verifyObject)�abstract�
interfaces)�compat�log)�
networkString)�FilePath)�platform)�TestCase)�http�resource�script�static)�FOUND)�UnsupportedMethod��_render)�DummyRequestc � � e Zd ZdZd� Zd� Zy)�StaticDataTestsz
Tests for L{Data}.
c � � �� t j dd� }t dg� �d�_ t |�� }�� fd�}|j |� |S )zV
L{Data.render} returns an empty response body for a I{HEAD} request.
� foo�bar� � HEADc �\ �� �j dj �j � d� y �N� ��assertEqual�join�written��ignored�request�selfs ���>/usr/lib/python3/dist-packages/twisted/web/test/test_static.py�
cbRenderedz4StaticDataTests.test_headRequest.<locals>.cbRendered. � �� ����S�X�X�g�o�o�6��<r )r �Datar �methodr �addCallback)r( �data�dr* r'