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]:
            with self.assertRaises(KeyError):
                file_name = strip_num_or_hash(os.path.basename(f.file.name))
                zipf.open(file_name)
    zipf.close()