a
    åze  ã                   @   sŠ   d Z ddlmZ ddlZG dd„ dejƒZG dd„ dejƒZG dd	„ d	ejƒZG d
d„ dejƒZG dd„ dejƒZ	e
dkr†ejdd dS )zTest debugobj, coverage 40%.é    )ÚdebugobjNc                   @   s   e Zd Zdd„ ZdS )ÚObjectTreeItemTestc                 C   s:   t  dd¡}|  |jd¡ |  |jd¡ |  |jd ¡ d S )NÚlabelé   )r   ZObjectTreeItemÚassertEqualZ	labeltextÚobjectZsetfunction©ÚselfZti© r
   ú5/usr/lib/python3.9/idlelib/idle_test/test_debugobj.pyÚ	test_init	   s    zObjectTreeItemTest.test_initN)Ú__name__Ú
__module__Ú__qualname__r   r
   r
   r
   r   r      s   r   c                   @   s   e Zd Zdd„ ZdS )ÚClassTreeItemTestc                 C   s   t  dd¡}|  | ¡ ¡ d S ©Nr   r   )r   ZClassTreeItemÚ
assertTrueÚIsExpandabler   r
   r
   r   Útest_isexpandable   s    z#ClassTreeItemTest.test_isexpandableN©r   r   r   r   r
   r
   r
   r   r      s   r   c                   @   s   e Zd Zdd„ ZdS )ÚAtomicObjectTreeItemTestc                 C   s   t  dd¡}|  | ¡ ¡ d S r   )r   ZAtomicObjectTreeItemÚassertFalser   r   r
   r
   r   r      s    z*AtomicObjectTreeItemTest.test_isexpandableNr   r
   r
   r
   r   r      s   r   c                   @   s   e Zd Zdd„ Zdd„ ZdS )ÚSequenceTreeItemTestc                 C   s8   t  dd¡}|  | ¡ ¡ t  dd¡}|  | ¡ ¡ d S )Nr   r
   )é   )r   ÚSequenceTreeItemr   r   r   r   r
   r
   r   r       s    z&SequenceTreeItemTest.test_isexpandablec                 C   s(   t  dd¡}|  t| ¡ ƒg d¢¡ d S )Nr   Úabc©r   r   é   )r   r   r   ÚlistÚkeysr   r
   r
   r   Ú	test_keys&   s    zSequenceTreeItemTest.test_keysN©r   r   r   r   r    r
   r
   r
   r   r      s   r   c                   @   s   e Zd Zdd„ Zdd„ ZdS )ÚDictTreeItemTestc                 C   s<   t  di ¡}|  | ¡ ¡ t  dddi¡}|  | ¡ ¡ d S )Nr   r   )r   ÚDictTreeItemr   r   r   r   r
   r
   r   r   -   s    z"DictTreeItemTest.test_isexpandablec                 C   s,   t  dddddœ¡}|  | ¡ g d¢¡ d S )Nr   r   r   r   )r   r   r   r   )r   r#   r   r   r   r
   r
   r   r    3   s    zDictTreeItemTest.test_keysNr!   r
   r
   r
   r   r"   +   s   r"   Ú__main__r   )Ú	verbosity)Ú__doc__Zidlelibr   ZunittestZTestCaser   r   r   r   r"   r   Úmainr
   r
   r
   r   Ú<module>   s   	