Example #1
0
 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)
Example #2
0
 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)