def test_txt_json_roundtrip(): convert_GDStxt_GDSjson(mydir / "file.txt", mydir / "fromtxt.json") convert_GDSjson_GDStxt(mydir / "fromtxt.json", mydir / "fromjson.txt") assert (filecmp.cmp(mydir / "file.txt", mydir / "fromjson.txt"))
def test_pretty_json_txt_roundtrip(): convert_GDSjson_GDStxt(mydir / "file.pretty.json", mydir / "fromjson10.txt") convert_GDStxt_GDSprettyjson(mydir / "fromjson10.txt", mydir / "fromtxt10.json") assert (filecmp.cmp(mydir / "file.pretty.json", mydir / "fromtxt10.json"))