3  fE@sNdZddlmZddlZddlmZGdddejZedkrJej dd dS) zTest rstrip, coverage 100%.)rstripN)Editorc@seZdZddZddZdS) rstripTestcCst}|j}tj|j}||j|jddd|jdd||j|jddd|jdd||j|jddddS)Nz1.0insertz z  )rtextrRstrip do_rstrip assertEqualgetr)selfeditorrr rB/opt/alt/python36/lib64/python3.6/idlelib/idle_test/test_rstrip.pytest_rstrip_line s   zrstripTest.test_rstrip_linecCsJt}|j}tj|j}d}d}|jd|||j|jdd|dS)NzLine 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 Zoriginalstrippedrrrtest_rstrip_multiples  zrstripTest.test_rstrip_multipleN)__name__ __module__ __qualname__rrrrrrrsr__main__) verbosity) __doc__ZidlelibrZunittestZidlelib.idle_test.mock_idlerZTestCaserrmainrrrrs   -