#NEWLINE# def test_update_record( self ) : #NEWLINE# #INDENT# zone = self . driver . list_zones ( ) [ 0 ] #NEWLINE# record = self . driver . list_records ( zone = zone ) [ 1 ] #NEWLINE# params = { #NEWLINE# #INDENT# 'record' : record , #NEWLINE# 'name' : 'www' , #NEWLINE# 'type' : RecordType . A , #NEWLINE# 'data' : '127.0.0.1' , #NEWLINE# 'extra' : { #NEWLINE# #INDENT# 'ttl' : 30 , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# updated_record = self . driver . update_record ( ** params ) #NEWLINE# self . assertEqual ( record . data , '208.111.35.173' ) #NEWLINE# self . assertEqual ( updated_record . id , 'A:www' ) #NEWLINE# self . assertEqual ( updated_record . name , 'www' ) #NEWLINE# self . assertEqual ( updated_record . zone , record . zone ) #NEWLINE# self . assertEqual ( updated_record . type , RecordType . A ) #NEWLINE# self . assertEqual ( updated_record . data , '127.0.0.1' )