Lines Matching refs:check_roundtrip
614 def check_roundtrip(self, f): member in TestRoundtrip
633 self.check_roundtrip("if x == 1:\n"
638 self.check_roundtrip("if x == 1:\n"
640 self.check_roundtrip("# This is a comment\n"
648 self.check_roundtrip("if x == 1 : \n"
652 self.check_roundtrip(f)
653 self.check_roundtrip("if x == 1:\n"
658 self.check_roundtrip("if (x # The comments need to go in the right place\n"
661 self.check_roundtrip("class Test: # A comment here\n"
670 self.check_roundtrip("try: import somemodule\n"
677 self.check_roundtrip("a = (3,4, \n"
690 self.check_roundtrip("x=1+\\\n"
694 self.check_roundtrip("# Comment \\\n"
699 self.check_roundtrip("'' ''")
716 self.check_roundtrip(f)