
|
Server : Apache System : Linux 182.49.167.72.host.secureserver.net 4.18.0-553.92.1.el8_10.x86_64 #1 SMP Wed Jan 14 06:31:58 EST 2026 x86_64 User : kikai ( 1014) PHP Version : 8.3.30 Disable Function : NONE Directory : /opt/python38/lib/python3.8/lib2to3/tests/__pycache__/ |
Upload File : |
U
�i�_�? � @ sj d Z ddlmZ ddlmZ ze W n ek
r@ dd� ZY nX G dd� dej�ZG d d
� d
ej�Z dS )a Unit tests for pytree.py.
NOTE: Please *don't* add doc strings to individual test methods!
In verbose mode, printing of the module, class and method name is much
more helpful than printing of (the first line of) the docstring,
especially when debugging a test.
� )�support� )�pytreec C s t | �}|�� |S �N)�list�sort)Zlst�l� r �8/opt/python38/lib/python3.8/lib2to3/tests/test_pytree.py�sorted s r c @ s e Zd ZdZdd� Zdd� Zdd� Zdd � Zd
d� Zdd
� Z dd� Z
dd� Zdd� Zdd� Z
dd� Zdd� Zdd� Zdd� Zdd� Zd d!� Zd"d#� Zd$d%� Zd&d'� Zd(d)� Zd*d+� Zd,d-� Zd.d/� Zd0d1� Zd2d3� Zd4d5� Zd6d7� Zd8d9� Zd:d;� Z d<d=� Z!d>d?� Z"d@dA� Z#dBS )C� TestNodesz(Unit tests for nodes (Base, Leaf, Node).c C s | � ttj� d S r )�assertRaises�AssertionErrorr ZBase)�selfr r r
�test_instantiate_base s zTestNodes.test_instantiate_basec C s, t �dd�}| �|jd� | �|jd� d S )N�d �foo)r �Leaf�assertEqual�type�value�r �l1r r r
� test_leaf"