<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"
        integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css"
        integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ=="
        crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
</html>
3
2au                 @   sn   d dl mZ d dlZd dlmZ d dlmZ ejZG dd dej	Z
G dd dej	Zed	krjejd
d dS )    )editorN)requires)Tkc               @   s,   e Zd Zedd Zedd Zdd ZdS )EditorWindowTestc             C   s   t d t | _| jj  d S )NZgui)r   r   rootZwithdraw)cls r   0/opt/alt/python36/lib64/python3.6/test_editor.py
setUpClass   s    zEditorWindowTest.setUpClassc             C   sB   | j j  x$| j jjddD ]}| j j| qW | j j  | ` d S )Nafterinfo)r   Zupdate_idletasksZtkZcallZafter_cancelZdestroy)r   idr   r   r	   tearDownClass   s
    

zEditorWindowTest.tearDownClassc             C   s(   t | jd}| j|j| j |j  d S )N)r   )Editorr   assertEqualZ_close)selfer   r   r	   	test_init   s    zEditorWindowTest.test_initN)__name__
__module____qualname__classmethodr
   r   r   r   r   r   r	   r      s   r   c               @   s   e Zd Zdd ZdS )EditorFunctionTestc             C   s@   t j}G dd d}d}x"|D ]\}}| j|||| qW d S )Nc               @   s   e Zd ZdZdS )z:EditorFunctionTest.test_filename_to_unicode.<locals>.dummyzutf-8N)r   r   r   Zfilesystemencodingr   r   r   r	   dummy%   s   r   abc   a𑄑c   a�c   abc   a𑄑cr   r   r   r   r   r   r   r   )r   r    r!   r"   )r   Z_filename_to_unicoder   )r   funcr   ZpairsZinpoutr   r   r	   test_filename_to_unicode#   s     z+EditorFunctionTest.test_filename_to_unicodeN)r   r   r   r%   r   r   r   r	   r   !   s   r   __main__   )	verbosity)Zidlelibr   ZunittestZtest.supportr   Ztkinterr   ZEditorWindowr   ZTestCaser   r   r   mainr   r   r   r	   <module>   s   