#NEWLINE# def test_init_doesnt_blowitaway( self ) : #NEWLINE# #INDENT# meta = MetaData ( ) #NEWLINE# a = Table ( 'a' , meta , Column ( 'id' , Integer , primary_key = True ) , Column ( 'x' , Integer ) ) #NEWLINE# b = Table ( 'b' , meta , Column ( 'id' , Integer , ForeignKey ( 'a.id' ) , primary_key = True ) , Column ( 'x' , Integer ) ) #NEWLINE# j = a . join ( b ) #NEWLINE# assert ( list ( b . primary_key ) == [ a . c . id ] ) #NEWLINE# j . foreign_keys #NEWLINE# assert ( list ( j . primary_key ) == [ a . c . id ] )