#NEWLINE# def test_literal_column_already_with_quotes( self ) : #NEWLINE# #INDENT# metadata = MetaData ( ) #NEWLINE# table = Table ( 't1' , metadata , Column ( 'col1' , Integer ) ) #NEWLINE# columns = [ sql . literal_column ( "'col1'" ) . label ( 'label1' ) ] #NEWLINE# x = select ( columns , from_obj = [ table ] ) . alias ( 'alias1' ) #NEWLINE# x = x . select ( ) #NEWLINE# self . assert_compile ( x , "SELECT alias1.label1 FROM (SELECT 'col1' AS label1 FROM t1) AS alias1" ) #NEWLINE# metadata = MetaData ( ) #NEWLINE# table = Table ( 'T1' , metadata , Column ( 'Col1' , Integer ) ) #NEWLINE# columns = [ sql . literal_column ( "'Col1'" ) . label ( 'Label1' ) ] #NEWLINE# x = select ( columns , from_obj = [ table ] ) . alias ( 'Alias1' ) #NEWLINE# x = x . select ( ) #NEWLINE# self . assert_compile ( metadata , 'SELECT "Alias1"."Label1" FROM (SELECT \'Col1\' AS "Label1" FROM "T1") AS "Alias1"' )