#NEWLINE# def _do_test( self , go ) : #NEWLINE# #INDENT# B = go ( ) #NEWLINE# self . Base . metadata . create_all ( testing . db ) #NEWLINE# sess = Session ( testing . db ) #NEWLINE# sess . add ( B ( data = 'some b' ) ) #NEWLINE# sess . commit ( ) #NEWLINE# b1 = sess . query ( B ) . one ( ) #NEWLINE# assert isinstance ( b1 , B ) #NEWLINE# sess . close ( ) #NEWLINE# del sess #NEWLINE# del b1 #NEWLINE# del B #NEWLINE# gc_collect ( ) #NEWLINE# eq_ ( len ( self . A . __subclasses__ ( ) ) , 0 )