관리-도구
편집 파일: test_text.cpython-36.opt-1.pyc
3 � fB � @ sv d Z ddlZddlmZ ddlmZ G dd� de�ZG dd� deej�Z G d d � d eej�Z edkrrejdd d� dS )zi Test mock_tk.Text class against tkinter.Text class Run same tests with both by creating a mixin class. � N)�requires)�TclErrorc @ sl e Zd ZdZdZed Zdd� Zdd� Zdd � Zd d� Z dd � Z dd� Zdd� Zdd� Z dd� Zdd� ZdS )�TextTestz*Define items common to both sets of tests.zhello world� c C s, | j | jjd�d� | j | jjd�d� d S )Nz1.0r �end� )�assertEqual�text�get)�self� r �@/opt/alt/python36/lib64/python3.6/idlelib/idle_test/test_text.py� test_init s zTextTest.test_initc C sH | j j}xdD ]}| j||�d� qW xdD ]}| j||�d � q,W d S )Ng �?�333333�?�1.-1�1.0�1.0 lineend�1.end�1.33�insertr � @�2.1�33.44z2.0� �)r r r r r r r r )r r r r )r �indexr )r r �dexr r r �test_index_empty s zTextTest.test_index_emptyc C sv | j j}| j jd| j� xd D ]}| j||�d� qW xdD ]}| j||�d� q<W xdD ]}| j||�d� qZW d S )N�1.0g �?�333333�?�1.-1�1.0 lineend�1.end�1.33z1.5r �33.44z3.0� �)r$ r r r )r r! r"