def testseq(seq, perms, buf): result = patchdir.patch_seq2ropath(seq) assert result.getperms() == perms, (result.getperms(), perms) fout = result.open("rb") contents = fout.read() assert not fout.close() assert contents == buf, (contents, buf)
def testseq(seq, perms, buf): result = patchdir.patch_seq2ropath(seq) assert result.getperms() == perms, (result.getperms(), perms) fout = result.open(u"rb") contents = fout.read() assert not fout.close() assert contents == buf, (contents, buf)