def testCopyRelease(self): cdrom = AptCdrom(None, "./test-data-cdrom") (p,s,i18n) = cdrom._scanCD() d=tempfile.mkdtemp() cdrom._copyRelease(s, d) self.assert_(os.path.exists(os.path.join(d,"Ubuntu%208.10%20%5fIntrepid%20Ibex%5f%20-%20Beta%20amd64%20(20080930.4)_dists_intrepid_Release")), "no outfile in '%s' (%s)" % (d, os.listdir(d)))