Your IP : 3.16.49.213
�
e fM � @ sm d d l Z d d l j Z d d l m Z Gd d � d e j � Z e d k ri e j d d d d � n d S)
� N)�Editorc @ s( e Z d Z d d � Z d d � Z d S)�
rstripTestc C s� t � } | j } t j | � j } | � | j | j d d � d � | j d d � | � | j | j d d � d � | j d d � | � | j | j d d � d � d S)Nz1.0�insert� z z
�
)r �text�rs�RstripExtension� do_rstrip�assertEqual�getr )�self�editorr r
� r �B/opt/alt/python34/lib64/python3.4/idlelib/idle_test/test_rstrip.py�test_rstrip_line s zrstripTest.test_rstrip_linec C sg t � } | j } t j | � j } d } d } | j d | � | � | j | j d d � | � d S)Nz�Line with an ending tab
Line ending in 5 spaces
Linewithnospaces
indented line
indented line with trailing space
zyLine with an ending tab
Line ending in 5 spaces
Linewithnospaces
indented line
indented line with trailing space
z1.0r )r r r r r
r r r )r
r r r
ZoriginalZstrippedr r r �test_rstrip_multiple s zrstripTest.test_rstrip_multipleN)�__name__�
__module__�__qualname__r r r r r r r s r �__main__� verbosity� �exitF)
ZunittestZidlelib.RstripExtensionr r Zidlelib.idle_test.mock_idler ZTestCaser r �mainr r r r �<module> s
+