3
fB @ sv d Z ddlZddlmZ ddlmZ G dd deZG dd deejZ G d d
d
eejZ
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 | jjdd | j | jjdd d S )Nz1.0r end )assertEqualtextget)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.-11.01.0 lineend1.end1.33insertr @2.133.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