MCPcopy
hub / github.com/rspeer/python-ftfy / test_wrong_encoding

Function test_wrong_encoding

tests/test_cli.py:48–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46
47
48def test_wrong_encoding():
49 # It's more of a problem when the file doesn't actually decode.
50 with pytest.raises(subprocess.CalledProcessError) as exception:
51 get_command_output(["ftfy", "-e", "windows-1252", TEST_FILENAME])
52 assert exception.value.output.decode("utf-8") == FAILED_OUTPUT
53
54
55def test_same_file():

Callers

nothing calls this directly

Calls 2

get_command_outputFunction · 0.85
decodeMethod · 0.45

Tested by

no test coverage detected