<s> """<STR_LIT>""" <EOL> from sqlalchemy import inspect <EOL> from sqlalchemy import Table , Column , Integer , MetaData <EOL> from sqlalchemy . testing import fixtures <EOL> from sqlalchemy . testing import is_ <EOL> class TestCoreInspection ( fixtures . TestBase ) : <EOL> def test_table ( self ) : <EOL> t = Table ( '<STR_LIT:t>' , MetaData ( ) , <EOL> Column ( '<STR_LIT:x>' , Integer ) <EOL> ) <EOL> is_ ( inspect ( t ) , t ) <EOL> assert t . is_selectable <EOL> is_ ( t . selectable , t ) <EOL> def test_select ( self ) : <EOL> t = Table ( '<STR_LIT:t>' , MetaData ( ) , <EOL> Column ( '<STR_LIT:x>' , Integer ) <EOL> ) <EOL> s = t . select ( ) <EOL> is_ ( inspect ( s ) , s ) <EOL> assert s . is_selectable <EOL> is_ ( s . selectable , s ) <EOL> def test_column_expr ( self ) : <EOL> c = Column ( '<STR_LIT:x>' , Integer ) <EOL> is_ ( inspect ( c ) , c ) <EOL> assert not c . is_selectable <EOL> assert not hasattr ( c , '<STR_LIT>' ) </s>
