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

Function test_alternate_encoding

tests/test_cli.py:41–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39
40
41def test_alternate_encoding():
42 # The file isn't really in Windows-1252. But that's a problem ftfy
43 # can fix, if it's allowed to be sloppy when reading the file.
44 output = get_command_output(["ftfy", "-e", "sloppy-windows-1252", TEST_FILENAME])
45 assert output == CORRECT_OUTPUT
46
47
48def test_wrong_encoding():

Callers

nothing calls this directly

Calls 1

get_command_outputFunction · 0.85

Tested by

no test coverage detected