/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite
NameSizeModeActions
test_cte.py67880644editdlrm
test_cte.pyc65180644editdlrm
test_cte.pyo65180644editdlrm
test_ddl.py28700644editdlrm
test_ddl.pyc44980644editdlrm
test_ddl.pyo44980644editdlrm
test_dialect.py45720644editdlrm
test_dialect.pyc57850644editdlrm
test_dialect.pyo56500644editdlrm
test_insert.py95860644editdlrm
test_insert.pyc113560644editdlrm
test_insert.pyo110300644editdlrm
test_reflection.py374680644editdlrm
test_reflection.pyc379640644editdlrm
test_reflection.pyo373450644editdlrm
test_results.py115040644editdlrm
test_results.pyc146380644editdlrm
test_results.pyo140860644editdlrm
test_select.py199840644editdlrm
test_select.pyc300940644editdlrm
test_select.pyo300940644editdlrm
test_sequence.py46610644editdlrm
test_sequence.pyc69430644editdlrm
test_sequence.pyo69430644editdlrm
test_types.py296320644editdlrm
test_types.pyc393990644editdlrm
test_types.pyo390540644editdlrm
test_update_delete.py14780644editdlrm
test_update_delete.pyc27480644editdlrm
test_update_delete.pyo26110644editdlrm
__init__.py3580644editdlrm
__init__.pyc4730644editdlrm
__init__.pyo4730644editdlrm
Edit: /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyo (37345B)
 4]c@sddlZddlZddlZddlmZddlmZddlmZddlmZddlm Z ddlm Z dd lm Z dd l m Z dd l mZd d lmZd dlmZd dlmZd dlmZd dlmZd dlmZd dlmZd dlmZd dlmZd dlmZd dl mZd dl mZd dlmZe e f\Z!Z"de j#fdYZ$de j#fdYZ%de j#fdYZ&dddfZ'dS( iNi(tassert_raises_message(tconfig(tengines(teq_(texpect_warnings(tfixtures(tis_(tColumn(tTablei(tevent(texc(t ForeignKey(tinspect(tInteger(tMetaData(tString(ttesting(ttypes(t Inspector(tDDL(tIndex(t quoted_namet HasTableTestcBs&eZeZedZdZRS(cCs5td|tdtdttdtddS(Nt test_tabletidt primary_keytdatai2(RRR tTrueR(tclstmetadata((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyt define_tables#s cCstjj}WdQXdS(N(Rtdbtbegin(tselftconn((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyttest_has_table,s(t__name__t __module__Rt __backend__t classmethodRR#(((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyR s tComponentReflectionTestcBsZeZdEZZeZedZedZ edZ edZ edZ edZ ejjdZejjdZejjdZejdEd dEd Zejjd Zejjejjejjd Zejjd ZejjejjdZejjdZ ejjejj!dZ"dEdZ#ejjejj!dZ$ejj%dZ&ejj%ejj!dZ'ejjejj%dZ(dEd dZ)ejjdZ*ejdZ+ejjdZ,ejjdZ-ejjejdZ.ejjejj!dZ/ejj0dZ1ejj0ejj%ejjdZ2ejj%dZ3ejj%ejj!d Z4ejdEd!Z5ejj6d"Z7ejjejj6ejj!d#Z8ejjejd$Z9ejdEd%Z:ejjd&Z;ejjejj!d'Z<ejj=ejj!d(Z>ejj?d)Z@ejjAd*ZBejd+ZCd,ZDejdEd-ZEejjFd.ZGejjFejj!d/ZHejd0ZIejjFd1ZJejjFd2ZKejjLejd3ZMejjNd4ZOejj0ejjNd5ZPejj0d6ZQejjNejj!d7ZRejdEd8ZSejjTd9ZUejjTejj!d:ZVejdEd;ZWejdEd<ZXejjd=ZYejjejj!d>ZZej[d?d@ejdEdAZ\dBZ]ejj!dCZ^ejjejdDZ_RS(FcCsFtjjjr;ddlm}tjdtd|j Stj SdS(Ni(tpooltoptionst poolclass( Rt requirementstindependent_connectionstenabledt sqlalchemyR)Rttesting_enginetdictt StaticPoolR(RR)((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyt setup_bind7s  cCs<|j|dtjjjr8|j|tjjndS(N(tdefine_reflected_tablestNoneRtrequirestschemasR.Rt test_schema(RR((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyRBsc Cs|r|d}nd}tjjjrtd|tdtjdttdtj ddt td tj ddt td tj tj d |d d d|dt}nftd|tdtjdttdtj ddt td tj ddt d|dt}td|tdtj dttdtj tj d|tdtjdd|dttd|tdtj tdtj tj |jjtdtjdtjdd dd|dttd|tdtj dtddtdtjdddtd tjddd!d|dd"tjjjr|dkrtd#|tdtj dttdtjdtd$t d%tjjdtdtjjjqtd&|tdtj dttd't d(tjjjtdtjdd|dttd)|tdtj dttdtjdd|dtntjjjrL|j|||sLtd*|td+tjddt}td,|tdtj dttd+tjddt}td-|jjjtd.|jjjqLntjjjrn|j||n| rtjj jr|j!|ndS(/Nt.ttuserstuser_idRttest1itnullablettest2tparent_user_ids%susers.user_idtnamet user_id_fktschemat test_needs_fkt dingalingst dingaling_idt address_ids%semail_addresses.address_idRitemail_addressestremote_user_idt email_addressit email_ad_pkt comment_testRtcomments id commentsdata % commenttd2s)Comment types type speedily ' " \ '' Fun!sthe test % ' " \ table commentt local_tablet remote_ids%s.remote_table_2.idt remote_tabletlocal_ids%s.local_table.idtremote_table_2tnoncol_idx_test_nopktqtnoncol_idx_test_pktnoncol_idx_nopkt noncol_idx_pk("RR6tself_referential_foreign_keysR.RRtsatINTRtCHARtFalsetFloatR R RtcR<tPrimaryKeyConstrainttcross_schema_fk_reflectionR5RR8Rtdialecttdefault_schema_nametindex_reflectiont define_indexRRUtdesctview_column_reflectiont define_viewsttemp_table_reflectiontdefine_temp_tables(RRRCt schema_prefixR;RTRV((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyR4Hs        c Cstjdr)idgd6dd6}nidgd6}td|tdtjd ttd tjd td tjtjd d d tj dd |}tj j j rtj j j rtj|dtdtj|dtdndS(NtoraclesGLOBAL TEMPORARYtprefixess PRESERVE ROWStoracle_on_committ TEMPORARYtuser_tmpRRRAi2tfoot user_tmp_uqt user_tmp_ixt after_creates:create temporary view user_tmp_v as select * from user_tmpt before_dropsdrop view user_tmp_v(RtagainstRRRZR[RtVARCHARtUniqueConstraintRR6tview_reflectionR.ttemporary_viewsR tlistenR(RRtkwRp((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyRjs,    cCsEtd|jj|jjtd|jj|jj|jjdS(Nt users_t_idxt users_all_idx(RR_R=R?R<(RRR;((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyRescCsx}d D]u}|}|r,d||f}n|d}d||f}tj|dt|tj|dtd|qWdS( NR;RHs%s.%st_vs"CREATE VIEW %s AS SELECT * FROM %sRtRus DROP VIEW %s(R;RH(R R{R(RRRCt table_nametfullnamet view_nametquery((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyRhs   cCs2ttj}|jtjj|jkdS(N(R RRtassert_RR8tget_schema_names(R!tinsp((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyttest_get_schema_namesscCstj}t|dS(N(RR0R (R!tengine((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyttest_dialect_initializes  cCs,ttj}t|jtjjjdS(N(R RRRRcRb(R!R((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyttest_get_default_schema_namesttablec Cs5ddddddg}|j}t|j}|dkrw|j|}|jdd g}tt||n|rg|j|D]} | d r| d ^q} n|j|} g| D]} | |kr| ^q}|d krd d dg}t||n"dd d g}tt||dS(NRLRVRTRORQRStviewtemail_addresses_vtusers_vit foreign_keyR;RHRE( RR tbindtget_view_namestsortRtsortedtget_sorted_table_and_fkc_namestget_table_names( R!RCt table_typetorder_byt_ignore_tablestmetaRt table_namestanswertrecttablestt((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyt_test_get_table_names"s0     % cCs5t|j}|j}tt|dgdS(NRp(R Rtget_temp_table_namesRR(R!Rttemp_table_names((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyttest_get_temp_table_namesIs cCs5t|j}|j}tt|dgdS(Nt user_tmp_v(R Rtget_temp_view_namesRR(R!RR((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyttest_get_temp_view_namesOs cCs|jdS(N(R(R!((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyttest_get_table_namesWscCs|jdddS(NRR(R(R!((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyttest_get_table_names_fks[scCs|jdS(N(t_test_get_comments(R!((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyttest_get_comments`scCs|jtjjdS(N(RRRR8(R!((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyttest_get_comments_with_schemadscCsttj}t|jdd|idd6t|jdd|idd6tg|jdd|D]"}i|dd6|dd6^qnidd6d d6id d6d d6id d6d d6gdS(NRLRCsthe test % ' " \ table commentttextR;RARMs id commentRsdata % commentRs)Comment types type speedily ' " \ '' Fun!RN(R RRRtget_table_commentR5t get_columns(R!RCRR((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyRis#8cCs|jtjjdS(N(RRRR8(R!((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyt test_get_table_names_with_schemascCs|jdddS(NRR(R(R!((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyttest_get_view_namesscCs|jtjjdddS(NRR(RRRR8(R!((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyttest_get_view_names_with_schemascCs|j|jdddS(NRR(R(R!((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyttest_get_tables_and_viewss c Csttj}|jj|jj}}ddg}|dkrOddg}nt|j}xt|||fD]}\}} |} |j |d| } |j t | dkt | x1t | j D] \} } t| j| | d| | d j}| j}t|tjjr,|j}ntjd r_|tjtjfkr_tj}n|j t t|jj|jjtjtjtjtjtjtj tj!gdkd | j| j| | d|f| j"sqqWqtWdS( NR;RHRRRRCiRAttypeRls%s(%s), %s(%s)(#RRRRR;RHR RtzipRRtlent enumeratetcolumnsRRAt __class__Rt isinstanceRZRt TypeEngineRvt sql_typestDatetDateTimetsett__mro__t intersectionR tNumerictTimeRt_BinaryR(R!RCRRR;t addressesRRRRt schema_nametcolstitcoltctypet ctype_def((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyt_test_get_columnssH  ""    " cCs|jdS(N(R(R!((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyttest_get_columnsscGs{td|jgt|D]\}}td||^q}|jgt|jjjdD]}|d^qgS(NRst%dR(RRRRtcreateR RR(R!RRttype_RR_((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyt_type_round_trips 5 cCsJxC|jtjddD]&}t|jdt|jdqWdS(Nii(RRRRt precisiontscale(R!ttyp((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyttest_numeric_reflections"cCs0|jtjdd}t|jddS(Ni4i(RRRRtlength(R!R((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyttest_varchar_reflectionsc Cstd|jtdtdttdtdt}|jttdt |jj j dDitd6td6dS(NRtaR>tbcss#|]}|d|dfVqdS(RAR>N((t.0R((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pys s( RRRR RR]RRR1R RR(R!R((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyttest_nullable_reflections cCs|jdtjjdS(NRC(RRRR8(R!((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyttest_get_columns_with_schemascCst|j}|jj}t|j}|jd}|jt|dkt|x5t|j D]$\}}t |j ||dqkWdS(NRpiRA( RRRRpR RRRRRRRA(R!RRpRRRR((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyttest_get_temp_table_columnss "cCsOt|j}|jd}tg|D]}|d^q(dddgdS(NRRARRq(R RRR(R!RRR((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyttest_get_temp_view_columnsscCs|jdddS(NRR(R(R!((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyttest_get_view_columnsscCs |jdtjjdddS(NRCRR(RRRR8(R!((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyt!test_get_view_columns_with_schemas c Cs|j}|jj|jj}}t|j}|j|jd|}|d}t|dg|j|jd|}|d} t| dgt j j j t|ddWdQXdS(NRCtconstrained_columnsR<RGRARK( RRR;RHR Rtget_pk_constraintRARRR6treflects_pk_namestfail_if( R!RCRR;RRt users_const users_pkeyst addr_const addr_pkeys((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyt_test_get_pk_constraint%s   cCs|jdS(N(R(R!((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyttest_get_pk_constraint6scCs|jdtjjdS(NRC(RRRR8(R!((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyt"test_get_pk_constraint_with_schema:scCsD|j}|jj}t|j}ttjd|j|j dS(Ns+.*get_primary_keys\(\) method is deprecated( RRR;RRRtsa_exctSADeprecationWarningtget_primary_keysRA(R!RR;R((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyt test_deprecated_get_primary_keys@s  c Cs|j}|jj|jj}}t|j}|}tjjj r|j |j d|}|d}tjj j t|ddWdQXt|d|t|d|j t|ddgtjjj rt|d d gqn|j |j d|} | d}tjjj |j|ddk WdQXt|d|t|d|j t|ddgt|d d gdS( NRCiRARBtreferred_schematreferred_tabletreferred_columnsR<RR@RI(RRR;RHR RRR6RYR.tget_foreign_keysRAtnamed_constraintsRRtimplicitly_named_constraintsRR5( R!RCRR;RRtexpected_schemat users_fkeystfkey1t addr_fkeys((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyt_test_get_foreign_keysMs,   cCs|jdS(N(R(R!((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyttest_get_foreign_keysnscCs|jdtjjdS(NRC(RRRR8(R!((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyt!test_get_foreign_keys_with_schemarsc CsK|jdtjjjdtjjdtjj\}}}ttj}|j|j }t t |d|d}t |dtjjt |d|j t |dd gt |d d g|j|j d tjj}t t |d|d}t |d|j t |dd gt |d d gdS(Ns%s.local_tables%s.remote_tables%s.remote_table_2iiRRRRRRPRCRR( RRRRbRcRR8R RRARR( R!RORQRSRt local_fkeysRt remote_fkeystfkey2((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyt"test_get_inter_schema_foreign_keysws&   cCs|jdddS(NtondeletetCASCADE(t_test_get_foreign_key_options(R!((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyt%test_get_foreign_key_options_ondeletescCs|jdddS(NtonupdatesSET NULL(R(R!((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyt%test_get_foreign_key_options_onupdatesc s{|j}td|tdtdtdttd|tdtdttdttjddd td td dttd |tdtdttdtd dttdttj dgdgdd|dt|j t |j }|j dddttfdDi|j d ddttfdD|dS(NtxRRRDRtx_idsx.idRAtxidttesti tuseri2R>ttidstable.idtmyfkiR*c3s)|]}|r||fVqdS(N((Rtk(topts(s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pys sc3s)|]}|r||fVqdS(N((RR (R (s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pys s(RRRR RRZR RR]tForeignKeyConstraintt create_allR RRRR1(R!R*RR((R s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyRs8   #cCsog|D]}|d^q}xK|D]C}||j|d}x#|D]}t||||qHWq$WdS(NRA(tindexR(R!tindexestexpected_indexestdt index_nameste_indexRtkey((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyt_assert_insp_indexess   cCs|j}t|j}|jdd|}itd6ddgd6dd6itd6d ddgd6d d6g}|j||dS( NR;RCtuniqueR=R?t column_namesR}RAR<R~(RR Rt get_indexesR]R(R!RCRRRR((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyt_test_get_indexess   cCs|jdS(N(R(R!((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyttest_get_indexesscCs|jdtjjdS(NRC(RRRR8(R!((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyttest_get_indexes_with_schemascCs|j}t|j}|j|}itd6|d6g}|j||t||d|j}tt|j dt t |j dj |tt |j dj |dS(NRRAt autoload_withii(RR RRR]RRRRRRtlistRRA(R!ttnametixnameRRRRR((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyt_test_get_noncol_indexs cCs|jdddS(NRTRW(R!(R!((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyttest_get_noncol_index_no_pkscCs|jdddS(NRVRX(R!(R!((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyttest_get_noncol_index_pk sc Cstd|jtdtdtdtdtj|jdtdtj|jdtd|jjt|jj }t d6t |j did d 6dgd 6d d 6gWdQXdS(NRRityRts+CREATE INDEX t_idx ON t(lower(x), lower(y))sCREATE INDEX t_idx_2 ON t(x)s>Skipped unsupported reflection of expression-based index t_idxtt_idx_2RARiR( RRRRR R{RRR RRRR(R!R((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyt%test_reflect_expression_based_indexess$    cCs|jdS(N(t_test_get_unique_constraints(R!((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyttest_get_unique_constraints,scCsdt|j}|jd}x|D]}|jddq%Wt|idgd6dd6gdS(NRptduplicates_indexRARRr(R Rtget_unique_constraintstpopR5R(R!Rt reflectedtrefl((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyt&test_get_temp_table_unique_constraints0s  cCst|j}|jd}x|D]}|jddq%Wtg|D]}|ddkrI|^qIitd6dgd6dd6gdS(NRptdialect_optionsRARsRRqR(R RRR+R5RR](R!RRtindtidx((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyttest_get_temp_table_indexes;s & cCs|jdtjjdS(NRC(R'RRR8(R!((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyt'test_get_unique_constraints_with_schemaNsc Cstidd6dgd6idd6dddgd6idd6dddgd6id d6d d gd6id d6dgd6id d6dgd6gd tjd}|j}td|tdtjdtdtjdtdtjtd tjdtd tjdd|}x2|D]*}|j tj d|d|dq*W|j t |j }t|jdd|d tjd}t}xRt||D]A\} } | jdd} | r|j| nt| | qWt} td| d|j d|}tg|jD]} | j^q-}tg|jD]!}t|tj rR|j^qRjdg}|rt||t|tndS(Ntunique_aRARRt unique_a_b_cRR_t unique_c_a_btunique_asc_keytascRs i.have.dotss i have spacesttesttbliiRCR)R(Rtoperatort itemgetterRRRRZRR tappend_constraintRxRR RR*RRR+R5taddRRRRAt constraintsRt difference(R!RCtuniquest orig_metaRtuct inspectorR,tnames_that_duplicate_indextorigR-tdupetreflected_metadataR1t idx_namestuqtuq_names((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyR'Ss^   "     % $  cCs|jdS(N(t_test_get_check_constraints(R!((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyttest_get_check_constraintsscCs|jdtjjdS(NRC(RKRRR8(R!((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyt!test_get_check_constraints_schemasc Cs|j}td|tdttjdddtjdddd||jt|j}t |j dd|d t j d}d }g|D](}i|dd6||d d 6^q}t |idd6d d 6idd6d d 6gdS(Ntsa_ccRsa > 1 AND a < 5RAtcc1sa = 1 OR (a > 2 AND a < 5)tcc2RCRcSs%djtjd|jtjS(Nt sand|\d|=|a|or|<|>(tjointretfindalltlowertI(tsqltext((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyt normalizesRWsa > 1 and a < 5sa = 1 or a > 2 and a < 5(RRRR RZtCheckConstraintRR RRtget_check_constraintsR:R;R(R!RCRARCR,RXtitem((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyRKs(   2cCsl|j}d}d}t|j}|j|d|}|j||j|d|}|j|dS(NRRRC(RR Rtget_view_definitionR(R!RCRt view_name1t view_name2Rtv1tv2((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyt_test_get_view_definitions  cCs|jdS(N(Ra(R!((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyttest_get_view_definitionscCs|jdtjjdS(NRC(RaRRR8(R!((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyt$test_get_view_definition_with_schemast postgresqlsPG specific featurecCsD|j}t|j}|j||}|jt|tdS(N(RR Rt get_table_oidRRtint(R!RRCRRtoid((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyt_test_get_table_oids cCs|jddS(NR;(Rh(R!((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyttest_get_table_oidscCs|jddtjjdS(NR;RC(RhRRR8(R!((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyttest_get_table_oid_with_schemascCs_|j}t|j}x@d d d gD]/\}}|j|}d|D|}q(WdS( stest that 'autoincrement' is reflected according to sqla's policy. Don't mark this test as unsupported for any backend ! (technically it fails with MySQL InnoDB since "id" comes before "id2") A backend is better off not returning "autoincrement" at all, instead of potentially returning "False" for an auto-incrementing primary key column. R;R<RHRGRERFcSsi|]}||dqS(RA((RR_((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pys s N(R;R<(RHRG(RERF(RR RR(R!RRRtcnameRtid_((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyttest_autoincrement_cols N(`R$R%R5t run_insertst run_deletesRR&R'R3RR4RjReRhRR6tschema_reflectionRRRtprovide_metadataRRRRyRzRttable_reflectionRt!foreign_key_constraint_reflectionRtcomment_reflectionRR7RRRRgRRRRRRRRRRRiRRRRRt!primary_key_constraint_reflectionRRRRRRRaRt1foreign_key_constraint_option_reflection_ondeleteRt1foreign_key_constraint_option_reflection_onupdateRRRRRdRRR!R"R#tindexes_with_expressionsR&tunique_constraint_reflectionR(R.R2R3R'tcheck_constraint_reflectionRLRMRKRaRbRctonly_onRhRiRjRm(((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyR(2s  $%        8             "-      N '    tNormalizedNameTestcBs5eZdZeZedZdZdZRS(tdenormalized_namescCslttddt|tdtdtttddt|tdtdttdtddS(Ntt1tquoteRRtt2tt1idst1.id(RRRRR R (RR((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyRscCscttj}ttddt|dt}|jd}ttj}|jdddS(NRRtautoloadR~tonlycSs|jdkS(NR~R(R~R(RU(RAtm((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyt,R:(RRRRRRRtreflect(R!tm2tt2_reftt1_reftm3((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyt$test_reflect_lowercase_forced_tables$s ! cCsgttjjD]}|jdkr|^q}t|dj|djt|dj|djdS(NR~Rii(R~R(R RRRRURtupper(R!Rt tablenames((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyR/s !(R}( R$R%t __requires__RR&R'RRR(((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyR|s  ((R:RSR/RZR:RRRRRRRRCRRR R RR R R RRRRRtengine.reflectionRRRt sql.elementsRR5RR;t TablesTestRR(R|t__all__(((s[/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_reflection.pyts@   (