%PDF- %PDF-
Mini Shell

Mini Shell

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

�
��4]c@s�ddlmZddlZddlZddlmZddlmZddlmZddlmZdd	lm	Z	dd
lm
Z
ddlmZdej
fd
��YZdefd��YZdS(i����(tdequeNi(tconfig(tfixtures(t	profilingi(t
create_engine(tMetaData(tutil(tSessiontReplayFixtureTestcBs>eZejd��Zd�Zd�Zd�Zd�ZRS(cos	dVdS(N((tselftargtkw((sT/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/replay_fixture.pyt
_dummy_ctxscs<t��tjjj���fd�}ttjjd|dt�}t|�|_	||_
t|�|_|j
�z|jd|j�Wd|j�|j�X�fd�}ttjjd|dt�}t|�|_	||_
t|�|_|j
�z|jdtj�Wd|jj�|j�XdS(Ncs�j���S(N(trecorder((tcreatort
dbapi_session(sT/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/replay_fixture.pyR
sRtuse_native_hstoretctxcs
�j�S(N(tplayer((R(sT/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/replay_fixture.pyR)s(tReplayableSessionRtdbtpoolt_creatorRturltFalseRtmetadatatengineRtsessiontsetup_enginet
_run_stepsRtteardown_enginetdisposeRtcount_functionstclose(R	R
RR((RRsT/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/replay_fixture.pyttest_invocations0		

	

cCsdS(N((R	((sT/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/replay_fixture.pyR;scCsdS(N((R	((sT/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/replay_fixture.pyR>scCs
t��dS(N(tNotImplementedError(R	R((sT/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/replay_fixture.pyRAs(	t__name__t
__module__t
contextlibtcontextmanagerRR"RRR(((sT/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/replay_fixture.pyRs
	(		RcBsteZdZe�Ze�Zejr�ege	e
�D]$Zejd�s7e
e
e�^q7�jgdD]Ze
e
e�^qk�Zn�ege	e
�D]$Zejd�s�e
e
e�^q��jgej�D]'Zeee�s�ee�ne^q��jgdD]Ze
e
e�^q
�Zd�Zd	�Zd
�Zdefd��YZd
efd��YZRS(sA simple record/playback tool.

    This is *not* a mock testing class.  It only records a session for later
    playback and makes no assertions on call consistency whatsoever.  It's
    unlikely to be suitable for anything other than DB-API recording.

    t_tFunctionTypetBuiltinFunctionTypet
MethodTypetBuiltinMethodTypet
LambdaTypetUnboundMethodTypecCst�|_dS(N(Rtbuffer(R	((sT/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/replay_fixture.pyt__init__~scCs|j|j|�S(N(tRecorderR/(R	tbase((sT/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/replay_fixture.pyR
�scCs|j|j�S(N(tPlayerR/(R	((sT/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/replay_fixture.pyR�sR1cBs2eZd�Zd�Zed��Zd�ZRS(cCs||_||_dS(N(t_buffert_subject(R	R/tsubject((sT/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/replay_fixture.pyR0�s	cOs�gdD]}tj||�^q\}}|||�}t|�tjkrr|jtj�t|�||�S|j|�|SdS(NR5R4(R5R4(tobjectt__getattribute__ttypeRtNativestappendtCallable(R	targsRtxR6R/tresult((sT/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/replay_fixture.pyt__call__�s(
cCs|jS(N(R5(R	((sT/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/replay_fixture.pyt_sqla_unwrap�scCs�ytj||�SWntk
r'nXgdD]}tj||�^q/\}}yt|�j||�}Wn$tk
r�|jtj��nJXt|�tjkr�|jtj�t|�||�S|j|�|SdS(NR5R4(R5R4(	R7R8tAttributeErrorR9R;RtNoAttributeR:R<(R	tkeyR>R6R/R?((sT/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/replay_fixture.pyR8�s 
(

(R$R%R0R@tpropertyRAR8(((sT/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/replay_fixture.pyR1�s		R3cBs2eZd�Zd�Zed��Zd�ZRS(cCs
||_dS(N(R4(R	R/((sT/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/replay_fixture.pyR0�scOs9tj|d�}|j�}|tjkr1|S|SdS(NR4(R7R8tpopleftRR<(R	R=RR/R?((sT/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/replay_fixture.pyR@�s
cCsdS(N(tNone(R	((sT/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/replay_fixture.pyRA�scCsytj||�SWntk
r'nXtj|d�}|j�}|tjkrY|S|tjkrwt|��n|SdS(NR4(R7R8RBRFRR<RC(R	RDR/R?((sT/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/replay_fixture.pyR8�s
(R$R%R0R@RERAR8(((sT/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/replay_fixture.pyR3�s		(R)R*R+R,R-R.(R)R*R+R,R-(R$R%t__doc__R7R<RCRtpy2ktsettdirttypesttt
startswithtgetattrt
differenceR:tuniont__builtins__tvaluest
isinstanceR9R0R
RR1R3(((sT/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/replay_fixture.pyREs<			:%':"			.(tcollectionsRR&RLtRRRRRRtormRtTestBaseRR7R(((sT/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/replay_fixture.pyt<module>s7

Zerion Mini Shell 1.0