#NEWLINE# def test_aliased_query( self ) : #NEWLINE# #INDENT# A = self . _fixture ( ) #NEWLINE# sess = Session ( ) #NEWLINE# a1 = aliased ( sess ) #NEWLINE# self . assert_compile ( sess . query ( a1 ) . filter ( ( a1 . value ( 5 ) == 'foo' ) ) , 'SELECT a_1.value AS a_1_value, a_1.id AS a_1_id FROM a AS a_1 WHERE foo(a_1.value, :foo_1) + :foo_2 = :param_1' )