(self, actual_node, expected_node_src)
| 32 | |
| 33 | class LoaderTest(unittest.TestCase): |
| 34 | def assertAstMatches(self, actual_node, expected_node_src): |
| 35 | expected_node = gast.parse(expected_node_src).body[0] |
| 36 | |
| 37 | msg = "AST did not match expected:\n{}\nActual:\n{}".format( |
| 38 | pretty_printer.fmt(expected_node), pretty_printer.fmt(actual_node) |
| 39 | ) |
| 40 | self.assertTrue(ast_util.matches(actual_node, expected_node), msg) |
| 41 | |
| 42 | def test_parse_load_identity(self): |
| 43 | def test_fn(x): |
no test coverage detected