#NEWLINE# def test_default_metadata( self ) : #NEWLINE# #INDENT# db = fsa . SQLAlchemy ( db . app , metadata = None ) #NEWLINE# self . db = db #NEWLINE# class One ( db . Model ) : #NEWLINE# #INDENT# id = db . Column ( db . Integer , primary_key = True ) #NEWLINE# myindex = db . Column ( db . Integer , index = True ) #NEWLINE# #UNINDENT# class Two ( db . Model ) : #NEWLINE# #INDENT# id = db . Column ( db . Integer , primary_key = True ) #NEWLINE# one_id = db . Column ( db . Integer , db . ForeignKey ( One . id ) ) #NEWLINE# myunique = db . Column ( db . Integer , unique = True ) #NEWLINE# #UNINDENT# self . assertTrue ( ( One . metadata . __class__ is sa . MetaData ) ) #NEWLINE# self . assertTrue ( ( Two . metadata . __class__ is sa . MetaData ) ) #NEWLINE# self . assertEqual ( One . __table__ . schema , None ) #NEWLINE# self . assertEqual ( Two . __table__ . schema , None )