3 Õì2aEã@sJddlmZddlZddlmZGdd„dejƒZedkrFejdd�dS) é)ÚrstripN)ÚEditorc@seZdZdd„Zdd„ZdS)Ú rstripTestcCs‚tƒ}|j}tj|ƒj}|ƒ|j|jddƒdƒ|jddƒ|ƒ|j|jddƒdƒ|jddƒ|ƒ|j|jddƒdƒdS)Nz1.0ÚinsertÚz z Ú )rÚtextrÚRstripÚ do_rstripÚ assertEqualÚgetr)ÚselfÚeditorrr ©rú0/opt/alt/python36/lib64/python3.6/test_rstrip.pyÚtest_rstrip_line s   zrstripTest.test_rstrip_linecCsJtƒ}|j}tj|ƒj}d}d}|jd|ƒ|ƒ|j|jddƒ|ƒdS)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)rrrr r rr r )r rrr ZoriginalÚstrippedrrrÚtest_rstrip_multiples  zrstripTest.test_rstrip_multipleN)Ú__name__Ú __module__Ú __qualname__rrrrrrrsrÚ__main__é)Ú verbosity) ZidlelibrZunittestZidlelib.idle_test.mock_idlerZTestCaserrÚmainrrrrÚs  -