def has_pkgs_signed_with(self, allowed_keys):
if not allowed_keys or not isinstance(allowed_keys, list):<EOL><INDENT>raise ConuException("<STR_LIT>")<EOL><DEDENT>command = ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>']<EOL>cont = self.run_via_binary(command=command)<EOL>try:<EOL><INDENT>out = cont.logs_unicode()[:-<NUM_LIT:1>].split('<STR_LIT:\n>')<EOL>check_signatures(out, allowed_keys)<EOL><DEDENT>finally:<EOL><INDENT>cont.stop()<EOL>cont.delete()<EOL><DEDENT>return True<EOL>
Check signature of packages installed in image.
Raises exception when

* rpm binary is not installed in image
* parsing of rpm fails
* there are packages in image that are not signed with one of allowed keys

:param allowed_keys: list of allowed keys
:return: bool