def test_writePlist_to_file(tmpdir, pl_no_builtin_types): testpath = tmpdir / "test.plist" with testpath.open("wb") as fp: writePlist(pl_no_builtin_types, fp) with testpath.open("rb") as fp: pl2 = plistlib.load(fp, use_builtin_types=False) assert pl2 == pl_no_builtin_types
def test_writePlist_to_file(tmpdir, pl_no_builtin_types): testpath = tmpdir / "test.plist" with testpath.open("wb") as fp: writePlist(pl_no_builtin_types, fp) with testpath.open("rb") as fp: pl2 = plistlib.load(fp, use_builtin_types=False) assert pl2 == pl_no_builtin_types