#NEWLINE# def test_load_from_middle( self ) : #NEWLINE# #INDENT# ( C , B ) = ( self . classes . C , self . classes . B ) #NEWLINE# s = Session ( ) #NEWLINE# s . add ( C ( ) ) #NEWLINE# o = s . query ( B ) . first ( ) #NEWLINE# eq_ ( o . type , 'c' ) #NEWLINE# assert isinstance ( o , B )