(self, code1, **kwargs)
| 132 | |
| 133 | class ASTTestCase(ASTTestMixin, unittest.TestCase): |
| 134 | def check_ast_roundtrip(self, code1, **kwargs): |
| 135 | with self.subTest(code1=code1, ast_parse_kwargs=kwargs): |
| 136 | ast1 = ast.parse(code1, **kwargs) |
| 137 | code2 = ast.unparse(ast1) |
| 138 | ast2 = ast.parse(code2, **kwargs) |
| 139 | self.assertASTEqual(ast1, ast2) |
| 140 | |
| 141 | def check_invalid(self, node, raises=ValueError): |
| 142 | with self.subTest(node=node): |
no test coverage detected