#NEWLINE# def test_indirect_table_column_mapped( self ) : #NEWLINE# #INDENT# Foo = self . classes . Foo #NEWLINE# Bar = self . classes . Bar #NEWLINE# bar = self . tables [ 'x.bar' ] #NEWLINE# mapper ( Foo , self . tables . foo , properties = { #NEWLINE# #INDENT# 'foo_id' : self . tables . foo . c . id , #NEWLINE# #UNINDENT# } ) #NEWLINE# mapper ( Bar , bar , inherits = Foo , properties = { #NEWLINE# #INDENT# 'bar_id' : bar . c . id , #NEWLINE# #UNINDENT# } ) #NEWLINE# bar_spec = Bar ( foo_id = 1 , bar_id = 2 , bat_id = 3 ) #NEWLINE# self . _run_test ( [ ( Foo . foo_id , bar_spec , 1 ) , ( ( Bar . bar_id , Bar . bat_id ) , bar_spec , ( 2 , 3 ) ) , ( Bar . foo_id , bar_spec , 1 ) , ( bar . c . id , bar_spec , 2 ) ] )