Every line of 'rstrip python' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
633 def test_rstrip_lines(self): 634 original = ( 635 "Line with an ending tab \n" 636 "Line ending in 5 spaces \n" 637 "Linewithnospaces\n" 638 " indented line\n" 639 " indented line with trailing space \n" 640 " \n") 641 stripped = ( 642 "Line with an ending tab\n" 643 "Line ending in 5 spaces\n" 644 "Linewithnospaces\n" 645 " indented line\n" 646 " indented line with trailing space\n") 647 648 self.text.insert('1.0', original) 649 self.do_rstrip() 650 self.assertEqual(self.text.get('1.0', 'insert'), stripped)