(self, code_string)
| 4 | |
| 5 | class TestAddMissingColons(unittest.TestCase): |
| 6 | def check_syntax(self, code_string): |
| 7 | try: |
| 8 | ast.parse(code_string) |
| 9 | return True |
| 10 | except SyntaxError: |
| 11 | return False |
| 12 | |
| 13 | def run_test_cases(self, test_cases, test_type, syntax_check=True): |
| 14 | for i, (input_str, expected_output) in enumerate(test_cases): |