관리-도구
편집 파일: test_rstrip.cpython-35.opt-1.pyc
��YfM � @ sj d d l Z d d l j Z d d l m Z Gd d � d e j � Z e d k rf e j d d d d � 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/python35/lib64/python3.5/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 +