#NEWLINE# def test_sub_columns_over_base_descriptors( self ) : #NEWLINE# #INDENT# class Base ( object ) : #NEWLINE# #INDENT# @ property #NEWLINE# def subdata( self ) : #NEWLINE# #INDENT# return 'this is base' #NEWLINE# #UNINDENT# #UNINDENT# class Sub ( Base ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# mapper ( Base , base ) #NEWLINE# mapper ( Sub , subtable , inherits = Base ) #NEWLINE# sess = create_session ( ) #NEWLINE# b1 = Base ( ) #NEWLINE# assert ( b1 . subdata == 'this is base' ) #NEWLINE# s1 = Sub ( ) #NEWLINE# s1 . subdata = 'this is sub' #NEWLINE# assert ( s1 . subdata == 'this is sub' ) #NEWLINE# sess . add_all ( [ self , b1 ] ) #NEWLINE# sess . flush ( ) #NEWLINE# sess . expunge_all ( ) #NEWLINE# assert ( sess . query ( Base ) . get ( b1 . base_id ) . subdata == 'this is base' ) #NEWLINE# assert ( sess . query ( Sub ) . get ( s1 . base_id ) . subdata == 'this is sub' )