#NEWLINE# def test_non_app_tables( self ) : #NEWLINE# #INDENT# '\n        Regression test for issue #92\n        ' #NEWLINE# cursor = connection . cursor ( ) #NEWLINE# cursor . execute ( 'CREATE SCHEMA non_app_schema' ) #NEWLINE# cursor . execute ( 'CREATE TABLE [non_app_schema].[test_table_issue_92] (id INTEGER);' ) #NEWLINE# cursor . commit ( ) #NEWLINE# connection . close ( ) #NEWLINE# new_settings = copy . deepcopy ( settings . DATABASES ) #NEWLINE# if ( 'limit_table_list' in new_settings [ DEFAULT_DB_ALIAS ] [ 'OPTIONS' ] ) : #NEWLINE# #INDENT# del new_settings [ DEFAULT_DB_ALIAS ] [ 'OPTIONS' ] [ 'limit_table_list' ] #NEWLINE# #UNINDENT# new_connections = ConnectionHandler ( new_settings ) #NEWLINE# new_connection = new_connections [ DEFAULT_DB_ALIAS ] #NEWLINE# try : #NEWLINE# #INDENT# tl = new_connection . introspection . table_names ( ) #NEWLINE# self . assertIn ( 'test_table_issue_92' , tl ) #NEWLINE# new_connection . close ( ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# new_connection . close ( ) #NEWLINE# #UNINDENT# except DatabaseError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# new_settings [ DEFAULT_DB_ALIAS ] [ 'OPTIONS' ] [ 'limit_table_list' ] = True #NEWLINE# new_connections = ConnectionHandler ( new_settings ) #NEWLINE# new_connection = new_connections [ DEFAULT_DB_ALIAS ] #NEWLINE# try : #NEWLINE# #INDENT# tl = new_connection . introspection . table_names ( ) #NEWLINE# self . assertNotIn ( 'test_table_issue_92' , tl ) #NEWLINE# new_connection . close ( ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# new_connection . close ( ) #NEWLINE# #UNINDENT# except DatabaseError : #NEWLINE# #INDENT# pass