def check_success(self):
small = range(<NUM_LIT:3>)<EOL>for i in range(self.iterations):<EOL><INDENT>key = PKey()<EOL>key.generate_key(TYPE_DSA, <NUM_LIT>)<EOL>for i in small:<EOL><INDENT>cert = X509()<EOL>cert.set_pubkey(key)<EOL>for i in small:<EOL><INDENT>cert.get_pubkey()<EOL><DEDENT><DEDENT><DEDENT>
Call the method repeatedly such that it will return a PKey object.