Lines Matching defs:check_roundtrip
1003 TestRoundtrip.check_roundtrip(self, open(path, 'rb'))
1498 TestRoundtrip.check_roundtrip(self, 'a\n b\n c\n \\\n c\n')
1516 def check_roundtrip(self, f):
1551 self.check_roundtrip("if x == 1:\n"
1553 self.check_roundtrip("# This is a comment\n"
1561 self.check_roundtrip("if x == 1 : \n"
1565 self.check_roundtrip(f)
1566 self.check_roundtrip("if x == 1:\n"
1571 self.check_roundtrip("if (x # The comments need to go in the right place\n"
1574 self.check_roundtrip("class Test: # A comment here\n"
1582 self.check_roundtrip("try: import somemodule\n"
1589 self.check_roundtrip("a = (3,4, \n"
1602 self.check_roundtrip("x=1+\\\n"
1606 self.check_roundtrip("# Comment \\\n"
1611 self.check_roundtrip("'' ''")
1639 self.check_roundtrip(f)
1655 self.check_roundtrip(code)