def test_write_sect_widths_12_curves(): l = read(egfn("sample_write_sect_widths_12.las")) s = StringIO() l.write(s, version=1.2) for start in ("D.M ", "A.US/M ", "B.K/M3 ", "C.V/V "): s.seek(0) assert "\n" + start in s.read()
def test_write_wrapped(): fn = stegfn("1.2", "sample_wrapped.las") l = read(fn) s = StringIO() l.write(s, version=2.0, wrap=True, fmt="%.5f") s.seek(0) assert s.read() == """~Version ---------------------------------------------------
def test_write_sect_widths_20_narrow(): l = read(egfn("sample_write_sect_widths_20_narrow.las")) s = StringIO() l.write(s, version=2) s.seek(0) assert s.read() == """~Version ---------------------------------------------------