@@ -0,0 +1,965 @@
+import pytest%0Aimport subprocess%0Aimport os%0Aimport sys%0Aimport StringIO%0Aimport struct%0A%0Aprefix = '.'%0Afor i in range(0,3):%0A    if os.path.exists(os.path.join(prefix, 'pyiso.py')):%0A        sys.path.insert(0, prefix)%0A        break%0A    else:%0A        prefix = '../' + prefix%0A%0Aimport pyiso%0A%0Afrom common import *%0A%0Adef test_hybrid_twofiles(tmpdir):%0A    # First set things up, and generate the ISO with genisoimage.%0A    outfile = tmpdir.join(%22twofile-test.iso%22)%0A    indir = tmpdir.mkdir(%22twofile%22)%0A    outfp = open(os.path.join(str(tmpdir), %22twofile%22, %22foo%22), 'wb')%0A    outfp.write(%22foo%5Cn%22)%0A    outfp.close()%0A    subprocess.call(%5B%22genisoimage%22, %22-v%22, %22-v%22, %22-iso-level%22, %221%22, %22-no-pad%22,%0A                     %22-o%22, str(outfile), str(indir)%5D)%0A%0A    # Now open up the ISO with pyiso and check some things out.%0A    iso = pyiso.PyIso()%0A    iso.open(open(str(outfile), 'rb'))%0A%0A    barstr = %22bar%5Cn%22%0A    iso.add_fp(StringIO.StringIO(barstr), len(barstr), %22/BAR%22)%0A%0A    check_twofile(iso)%0A

Add in hybrid tests.