î e fMã@smddlZddljZddlmZGdd„dejƒZedkriej dddd ƒndS) éN)ÚEditorc@s(eZdZdd„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ÚtextÚrsÚRstripExtensionÚ do_rstripÚ assertEqualÚgetr)ÚselfÚeditorrr ©rúB/opt/alt/python34/lib64/python3.4/idlelib/idle_test/test_rstrip.pyÚtest_rstrip_lines  zrstripTest.test_rstrip_linecCsgtƒ}|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 ZoriginalZstrippedrrrÚtest_rstrip_multiples  zrstripTest.test_rstrip_multipleN)Ú__name__Ú __module__Ú __qualname__rrrrrrrs  rÚ__main__Ú verbosityéÚexitF) ZunittestZidlelib.RstripExtensionr rZidlelib.idle_test.mock_idlerZTestCaserrÚmainrrrrÚs +