%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/
Upload File :
Create Path :
Current File : //proc/self/root/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_strings.pyo

�
5}�ac@s�ddlZddlTddlmZddlmZdejfd��YZed�dejfd	��Y�Zd
ejfd��YZ	ed�dejfd
��Y�Z
d�Zd�Ze
dkr�ej�ndS(i����N(t*(tneed_symbol(ttest_supporttStringArrayTestCasecBsMeZd�Zed�Zed�Zd�Zd�Zd�Zd�Z	RS(cCstd}|ddd�}|j|jd�|j|jd�d|_|j|jd�|j|jd�d|_|j|jd�|j|jd	�d
|d<|j|jd�|j|jd�|jtt|d
d�|jtt|d
d�dS(NitatbtctabcsabctABCDtxsxCDtZitxZCDtvaluetaaaaaaaai*(tc_chartassertEqualRtrawtassertRaisest
ValueErrortsetattrt	TypeError(tselftBUFtbuf((sA/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_strings.pyttests
		
cCs�td�}d|_|j|jd�|jtt|d|d��|jtt|d|d��|jtt|d|dd��dS(Ni sHello, WorldRRRR	id(tc_bufferRRRRRR(Rt
memoryviewR((sA/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_strings.pyttest_c_buffer_values	cCsttd�}|d�|_|j|jd�|jtt|d|d��|jtt|d|dd��dS(Ni sHello, WorldRRRR	id(RRRRRRRR(RRR((sA/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_strings.pyttest_c_buffer_raw's
cCs1tj��|jt�|jt�WdQXdS(N(Rtcheck_py3k_warningsRtbufferR(R((sA/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_strings.pyttest_c_buffer_deprecated/s

cCstd}|�}dS(Ni(R(RRR((sA/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_strings.pyttest_param_15s
cCstd}|�}dS(Ni(R(RRR((sA/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_strings.pyttest_param_2:s
cCs3td}|�}|jt��|`WdQXdS(Ni(RRtAttributeErrorR(RRR((sA/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_strings.pyttest_del_segfault@s
	(
t__name__t
__module__RRRRRR R!R#(((sA/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_strings.pyRs	
			tc_wchartWStringArrayTestCasecBseZd�ZRS(cCs�td}|ddd�}|j|jd�d|_|j|jd�d|_|j|jd�d|d	<|j|jd
�dS(NiuaubucuabcuABCDuxuZiuxZCD(R&RR(RRR((sA/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_strings.pyRIs
		
(R$R%R(((sA/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_strings.pyR'GstStringTestCasecBs�eZejd�d��Zejd�d��Zejd�d��Zejd�d��Zejd�d��ZRS(s
test disabledcCstd�}|jtt|�|jt|�d�|j|jd�|jtd�jd�|j|jd�|jtd�jd�d|_|j|jd�|j|jd�d	|_|j|jd	�|j|jd
�|jttd�dS(NtabcdefisabcdefRsabcdefsabcdeftabsabtXYsXYu123(tc_stringRRtlenRtsizeofRR(Rtcs((sA/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_strings.pyttest_basic_stringsYs		cCs�|jttd�|jttd�j�d�|jttd�|jttd�|jtd�jdd�|jttd�j�d�dS(Ni i����iis(RRR,tNoneRR-RR(R((sA/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_strings.pyttest_sized_stringstscCs�|jtdd�jd d�|jtdd�jddd�d�|jtdd�jddd�d�|jtdd�jddd�d�|jtdd�jdd�|jtdd�jd�dS(	NR*iii����tbaRssa(RR,RR1(R((sA/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_strings.pyttest_initialized_strings�s ))) cCsBtd�}|jtt|dd�|jtt|dd�dS(NR)Rt123456789012345t1234567(R,RRR(RR/((sA/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_strings.pyttest_toolong�scCst�dS(N(t
check_perf(R((sA/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_strings.pyt	test_perf�s(	R$R%tunittesttskipR0R2R4R7R9(((sA/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_strings.pyR(Xs

	tWStringTestCasecBsAeZd�Zejd�d��Zejd�d��ZRS(cCs.td�tttd���td�dS(NuxR	(R&treprtbyref(R((sA/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_strings.pyt
test_wchar�s
s
test disabledcCs�td�}|jt|�d�|j|jd�|jtd�jd�|jtd�jd�|j|jd�|jtd�jd�d|_|j|jd�|j|jd�|jttd	�|jttd
�dS(Nuabcdefiuabcdefuabcuabcdefuabcdefuabuabt123i(t	c_wstringRR.RRRRR(RR/((sA/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_strings.pyttest_basic_wstrings�s	cCsBtd�}|jtt|dd�|jtt|dd�dS(NuabcdefRu123456789012345u1234567(RARRR(RR/((sA/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_strings.pyR7�s(R$R%R?R:R;RBR7(((sA/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_strings.pyR<�s	c	Cs�t|�}ddlm}|�}x@|D]8}||�||�||�||�||�q,W|�}d|||dd|fGHdS(Ni����(tclocks
%20s: %.2f usg��.Ai(trangettimeRC(	treptmsgtfunctargtitemsRCtstarttitstop((sA/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_strings.pytrun_test�s	




	cCs0d}t|dtd�t|dtd�dS(Ni@
sc_string(None)sc_string('abc')R(RNR,R1(tREP((sA/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_strings.pyR8�st__main__(R:tctypestctypes.testRRRtTestCaseRR'R(R<RNR8R$tmain(((sA/opt/plesk/python/2.7/lib64/python2.7/ctypes/test/test_strings.pyt<module>s
AE,			

Zerion Mini Shell 1.0