#NEWLINE# @ testing . provide_metadata #NEWLINE# def _test_get_table_names( self , schema = None , table_type = 'table' , order_by = None ) : #NEWLINE# #INDENT# meta = self . metadata #NEWLINE# ( users , addresses , dingalings ) = ( addresses . tables . users , self . tables . email_addresses , self . tables . dingalings ) #NEWLINE# insp = inspect ( meta . bind ) #NEWLINE# if ( table_type == 'view' ) : #NEWLINE# #INDENT# table_names = insp . get_view_names ( schema ) #NEWLINE# table_names . sort ( ) #NEWLINE# answer = [ 'email_addresses_v' , 'users_v' ] #NEWLINE# eq_ ( sorted ( table_names ) , answer ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# table_names = insp . get_table_names ( schema , order_by = order_by ) #NEWLINE# if ( order_by == 'foreign_key' ) : #NEWLINE# #INDENT# answer = [ 'users' , 'email_addresses' , 'dingalings' ] #NEWLINE# eq_ ( table_names , answer ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# answer = [ 'dingalings' , 'email_addresses' , 'users' ] #NEWLINE# eq_ ( sorted ( table_names ) , answer )