MCPcopy Index your code
hub / github.com/rspeer/python-ftfy / test_same_file

Function test_same_file

tests/test_cli.py:55–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53
54
55def test_same_file():
56 with pytest.raises(subprocess.CalledProcessError) as exception:
57 get_command_output(["ftfy", TEST_FILENAME, "-o", TEST_FILENAME])
58 error = exception.value.output.decode("utf-8")
59 assert error.startswith("ftfy error:")
60 assert "Can't read and write the same file" in error
61
62
63def test_stdin():

Callers

nothing calls this directly

Calls 2

get_command_outputFunction · 0.85
decodeMethod · 0.45

Tested by

no test coverage detected