MCPcopy
hub / github.com/pandas-dev/pandas / test_compression_output

Function test_compression_output

pandas/tests/io/xml/test_to_xml.py:1288–1301  ·  view source on GitHub ↗
(parser, compression_only, geom_df, temp_file)

Source from the content-addressed store, hash-verified

1286
1287
1288def test_compression_output(parser, compression_only, geom_df, temp_file):
1289 path = temp_file
1290 geom_df.to_xml(path, parser=parser, compression=compression_only)
1291
1292 with get_handle(
1293 path,
1294 "r",
1295 compression=compression_only,
1296 ) as handle_obj:
1297 output = handle_obj.handle.read()
1298
1299 output = equalize_decl(output)
1300
1301 assert geom_xml == output.strip()
1302
1303
1304def test_filename_and_suffix_comp(

Callers

nothing calls this directly

Calls 5

get_handleFunction · 0.90
equalize_declFunction · 0.85
to_xmlMethod · 0.80
stripMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected