|
Server : LiteSpeed System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64 User : nandedex ( 1060) PHP Version : 8.1.33 Disable Function : NONE Directory : /opt/cppython/lib/python3.8/lib2to3/tests/__pycache__/ |
U
?��g�? � @ 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/cppython/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"