%PDF- %PDF-
Direktori : /lib/python3/dist-packages/twisted/python/test/__pycache__/ |
Current File : //lib/python3/dist-packages/twisted/python/test/__pycache__/test_url.cpython-312.pyc |
� Ϫ�fmu � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z dZ d Zg d �Zd� Z G d� d e� Z G d� de� Z G d� de� Zy)z" Tests for L{twisted.python.url}. � )�annotations)�Iterable)�Protocol)�SynchronousTestCase� ��URL�*http://www.foo.com/a/nice/path/?zot=23&zut�http://a/b/c/d;p?q)()�g�http://a/b/c/g)z./gr )zg/�http://a/b/c/g/)z/g� http://a/g)z//gzhttp://g)z?yzhttp://a/b/c/d;p?y)zg?yzhttp://a/b/c/g?y)z#szhttp://a/b/c/d;p?q#s)zg#szhttp://a/b/c/g#s)zg?y#szhttp://a/b/c/g?y#s)z;xzhttp://a/b/c/;x)zg;xzhttp://a/b/c/g;x)zg;x?y#szhttp://a/b/c/g;x?y#s)� r )�.� http://a/b/c/)z./r )�..�http://a/b/)z../r )z../g�http://a/b/g)z../..� http://a/)z../../r )z../../gr )z ../../../gr )z ../../../../gr )z/./gr )z/../gr )zg.zhttp://a/b/c/g.)z.gzhttp://a/b/c/.g)zg..zhttp://a/b/c/g..)z..gzhttp://a/b/c/..g)z./../gr )z./g/.r )zg/./hzhttp://a/b/c/g/h)zg/../hzhttp://a/b/c/h)z g;x=1/./yzhttp://a/b/c/g;x=1/y)z g;x=1/../yzhttp://a/b/c/y)zg?y/./xzhttp://a/b/c/g?y/./x)zg?y/../xzhttp://a/b/c/g?y/../x)zg#s/./xzhttp://a/b/c/g#s/./x)zg#s/../xzhttp://a/b/c/g#s/../xc �2 � dj d� | D � � S )Nr c 3 �8 K � | ] }d t |� z �� � y�w)z%%%02XN)�ord)�.0�cs �>/usr/lib/python3/dist-packages/twisted/python/test/test_url.py� <genexpr>z<lambda>.<locals>.<genexpr>L s � �� �=�a��3�q�6� 1�=�s �)�join)�ss r �<lambda>r L s � ����=�1�=�=� � c � � e Zd Zedd�� Zy)� _HasExceptionc � � y )N� ��selfs r � exceptionz_HasException.exceptionP s � �r! N)�return� BaseException)�__name__� __module__�__qualname__�propertyr( r% r! r r# r# O s � � �� �r! r# c � � e Zd ZdZd/d�Z d0 d1d�Zd2d�Zd2d�Zd2d�Zd2d�Z d2d�Z d2d �Zd2d �Zd2d�Z d2d�Zd2d �Zd2d�Zd2d�Zd2d�Zd2d�Zd2d�Zd2d�Zd2d�Zd2d�Zd2d�Zd2d�Zd2d�Zd2d�Zd2d�Zd2d�Zd2d�Zd2d�Zd2d�Z d2d�Z!d2d �Z"d2d!�Z#d2d"�Z$d2d#�Z%d2d$�Z&d2d%�Z'd2d&�Z(d2d'�Z)d2d(�Z*d2d)�Z+d2d*�Z,d2d+�Z-d2d,�Z.d2d-�Z/y.)3�TestURLz Tests for L{URL}. c �( � | j |j t t |� � | j |j t t |� � |j D ]"