#NEWLINE# def test_list_records_success( self ) : #NEWLINE# #INDENT# zone = self . driver . get_zone ( zone_id = 'zupo.com' ) #NEWLINE# records = self . driver . list_records ( zone = zone ) #NEWLINE# self . assertEqual ( len ( records ) , 2 ) #NEWLINE# arecord = records [ 0 ] #NEWLINE# self . assertEqual ( arecord . id , '13' ) #NEWLINE# self . assertEqual ( arecord . name , 'arecord' ) #NEWLINE# self . assertEqual ( arecord . type , RecordType . A ) #NEWLINE# self . assertEqual ( arecord . data , '127.0.0.1' )