def METHOD_NAME(self, tests, tp):
    zipf = zipfile.ZipFile(tp.package, 'r')
    for t in tests:
        for f in [t.input_file, t.output_file]:
            file_name = strip_num_or_hash(os.path.basename(f.file.name))
            content1 = zipf.open(file_name).read()
            content2 = f.file.file.read()
            self.assertEqual(content1, content2)
    zipf.close()