def _check_result_status(self, result, result_status_type,<EOL>result_status_value):
result_status = result.result_status.value<EOL>expected = result_status_type<EOL>self.assertIsInstance(result_status, expected)<EOL>expected = result_status_value<EOL>if result_status is ResultStatus.OPERATION_FAILED:<EOL><INDENT>self.logger.error(result)<EOL>self.logger.error(result.result_reason)<EOL>self.logger.error(result.result_message)<EOL><DEDENT>self.assertEqual(expected, result_status)<EOL>
Helper function for checking the status of KMIP appliance actions.
Verifies the result status type and value.
:param result: result object
:param result_status_type: type of result status received
:param result_status_value: value of the result status