#NEWLINE# def test_join_base_to_sub( self ) : #NEWLINE# #INDENT# sess = create_session ( ) #NEWLINE# pa = with_polymorphic ( Person , [ Engineer ] ) #NEWLINE# def go( ) : #NEWLINE# #INDENT# eq_ ( sess . query ( pa ) . filter ( ( pa . Engineer . primary_language == 'java' ) ) . all ( ) , self . _emps_wo_relationships_fixture ( ) [ 0 : 1 ] ) #NEWLINE# #UNINDENT# self . assert_sql_count ( testing . db , self , 1 )