#NEWLINE# def test_delete_record_success( self ) : #NEWLINE# #INDENT# zone = self . driver . list_zones ( ) [ 0 ] #NEWLINE# records = self . driver . list_records ( zone = zone ) #NEWLINE# self . assertEqual ( len ( records ) , 3 ) #NEWLINE# record = records [ 1 ] #NEWLINE# WorldWideDNSMockHttp . type = 'DELETE_RECORD' #NEWLINE# status = self . driver . delete_record ( record = record ) #NEWLINE# self . assertTrue ( status ) #NEWLINE# zone = self . driver . list_zones ( ) [ 0 ] #NEWLINE# records = self . driver . list_records ( zone = zone ) #NEWLINE# self . assertEqual ( len ( records ) , 2 )