(self, stmt, expected)
| 125 | [("$from json import dump", True), ("$print()", False), ("$import json", True), ("import json", False)] |
| 126 | ) |
| 127 | def test_is_import_stmt(self, stmt, expected): |
| 128 | expr = ConfigExpression(id="", config=stmt) |
| 129 | flag = expr.is_import_statement(expr.config) |
| 130 | self.assertEqual(flag, expected) |
| 131 | |
| 132 | def test_error_expr(self): |
| 133 | with self.assertRaisesRegex(RuntimeError, r"1\+\[\]"): |
nothing calls this directly
no test coverage detected