%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.pyc

�
��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	Cs�tjj���}y,|jttd�g��ts=t�WnCtj	k
r�}t
|�}t
|j�t
|�ks�t�nXtj
r�t|t
�s�t�nt|t
�s�t�WdQXdS(Numéil(RRRRRR
RtAssertionErrorRt
DBAPIErrortstrtorigR
tpy2kt
isinstance(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(
RRRR9R R"RtscalarRtcRtNonetdelete(R#R$R8R%((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(R8(R0R1R3t__requires__RR4R5RR?RERF(((sX/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_dialect.pyR7Rs
		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 tdictRR;RR<RtwhereR
(R#tmRIR$((sX/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_dialect.pyttest_percent_sign_round_trips 	!(R0R1RRN(((sX/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_dialect.pyRH~sN(tRRRRRRtschemaRRRR	R
RRtutilR
t
TablesTestRR7tTestBaseRH(((sX/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/suite/test_dialect.pyt<module>s ?,

Zerion Mini Shell 1.0