Should displays error when errored python file is given.
(self)
| 314 | self.assertListEqual(err.splitlines(), stderr.splitlines()) |
| 315 | |
| 316 | def test_with_errored_file(self): |
| 317 | """Should displays error when errored python file is given.""" |
| 318 | with TemporaryPyFile(SOURCE_CODES["wrong_indented"]) as file_path: |
| 319 | stderr = f"{file_path!r}: Indentation Error: " |
| 320 | stderr += ('unindent does not match any outer indentation level' |
| 321 | ' (<string>, line 3)') |
| 322 | self.validate_cmd(file_path, stderr=stderr, expect_failure=True) |
| 323 | |
| 324 | def test_with_error_free_file(self): |
| 325 | """Should not display anything if python file is correctly indented.""" |
nothing calls this directly
no test coverage detected