def test_readPlist_from_file(pl): with open(os.path.join(datadir, "test.plist"), "rb") as f: pl2 = readPlist(f) assert isinstance(pl2["someData"], plistlib.Data) assert pl2 == pl assert not f.closed
def test_readPlist_from_path(pl): path = os.path.join(datadir, "test.plist") pl2 = readPlist(path) assert isinstance(pl2["someData"], plistlib.Data) assert pl2 == pl