original_docstring: Check if response message is already succeed.
docstring: Check if response message is already succeed.
docstring_tokens: Check if response message is already succeed .
code: def check_response(self, xml_str, xml_name):
          """Check if response message is already succeed."""
  
          if "<ok/>" not in xml_str:
              self.module.fail_json(msg='Error: %s failed.' % xml_name)
code_tokens: def check_response ( self , xml_str , xml_name ) : if "<ok/>" not in xml_str : self . module . fail_json ( msg = 'Error: %s failed.' % xml_name )
short_docstring: Check if response message is already succeed.
short_docstring_tokens: Check if response message is already succeed .
comment: """Check if response message is already succeed."""