#NEWLINE# def add_record( self , qtype , qname , content , ttl ) : #NEWLINE# #INDENT# 'Add a record to the response (self.result)\n\n        args:\n            qtype: string, e.g. "ANY"\n            qname: string, e.g. "host1.test.com"\n            content: string, e.g. "192.168.1.1"\n            ttl: string or int, e.g.: 1\n\n        ' #NEWLINE# if ( not isinstance ( self . result , list ) ) : #NEWLINE# #INDENT# self . result = [ ] #NEWLINE# #UNINDENT# self . result . append ( { #NEWLINE# #INDENT# 'qtype' : qtype , #NEWLINE# 'qname' : qname , #NEWLINE# 'content' : content , #NEWLINE# 'ttl' : ttl , #NEWLINE# #UNINDENT# } )