def _get_signature_details(self): with zipfile.ZipFile(self.file_.current_file_path, mode='r') as zobj: info = signing.SignatureInfo(zobj.read('META-INF/mozilla.rsa')) manifest = force_text(zobj.read('META-INF/manifest.mf')) return info, manifest
def test_loading_reading_string(self): info = signing.SignatureInfo(self.pkcs7) assert isinstance(info.content, collections.OrderedDict)
def _get_signature_details(path): with zipfile.ZipFile(path, mode='r') as zobj: info = signing.SignatureInfo(zobj.read('META-INF/mozilla.rsa')) manifest = force_str(zobj.read('META-INF/manifest.mf')) return info, manifest