https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/boto/sdb/db/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/boto/sdb/db/__pycache__/test_db.cpython-310.pyc
o

ckF[3�@s�ddlZddlZddlmZddlmZddlmZmZmZddlm	Z	m
Z
mZddlmZm
Z
mZddlmZe��e�d�Ze�ej�iaGd	d
�d
e�ZGdd�de�ZGd
d�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�Z Gdd�de�Z!dd �Z"d!d"�Z#d#d$�Z$d6d%d&�Z%d'd(�Z&d)d*�Z'd+d,�Z(d-d.�Z)d/d0�Z*d1d2�Z+d3d4�Z,e-d5kr�e,�dSdS)7�N)�datetime)�Model)�StringProperty�IntegerProperty�BooleanProperty)�DateTimeProperty�
FloatProperty�ReferenceProperty)�PasswordProperty�ListProperty�MapProperty)�SDBPersistenceError�test_dbc@s$eZdZe�Ze�Ze�Ze	�Z
dS)�	TestBasicN)�__name__�
__module__�__qualname__r�namer�sizer�foor�date�rr�5/usr/lib/python3/dist-packages/boto/sdb/db/test_db.pyrs

rc@�eZdZe�Ze�ZdS)�	TestFloatN)rrrrrr�valuerrrrr�
rc@seZdZeddd�ZdS)�TestRequiredTr)�required�defaultN)rrrr�reqrrrrr"�rc@seZdZeedd�ZdS)�
TestReference�refs)�reference_class�collection_nameN)rrrr	r�refrrrrr"&r!r"c@�eZdZe�ZdS)�TestSubClassN)rrrr�answerrrrrr(*s
r(c@r')�TestPasswordN)rrrr
�passwordrrrrr*.s
r*c@�eZdZe�Zee�ZdS)�TestListN)rrrrrr�int�numsrrrrr-1�r-c@r)�TestMapN)rrrrrr�maprrrrr16rr1c@r,)�TestListReferenceN)rrrrrrr�basicsrrrrr3;r0r3c@s eZdZedd�Zedd�ZdS)�TestAutoNowT)�auto_now_add)�auto_nowN)rrrr�create_date�
modified_daterrrrr5@s
r5c@seZdZedd�ZdS)�
TestUniqueT)�uniqueN)rrrrrrrrrr:Esr:cCs�t�}d|_d|_d|_t��|_t�d�|�	�|t
d<t�d�t�d�t�
|j�}|t
d<|j|jks:J�t�
|jg�}t|�d	ksIJ�|d
j|jksSJ�|j|jks[J�|j|jkscJ�|j|jkskJ�|S)N�simplei���T�
saving object�test_basic_t��now try retrieving it�
test_basic_tt�r)rrrrr�nowr�log�debug�put�_objects�time�sleep�	get_by_id�id�len)�t�tt�lrrr�
test_basicHs(



rPcCs�t�}d|_d|_t�d�|��|td<t�d�t�d�t�	|j
�}|td<|j
|j
ks2J�|j|jks:J�|j|jksBJ�|S)Nzfloat objectgfffff�X@r=�test_float_tr?r@�
test_float_tt)rrrrDrE�saverGrHrIrJrK�rMrNrrr�
test_float`s


rUcCst�}|td<|��|S)N�test_required_t)rrGrF�rMrrr�
test_requiredqsrXcCsh|st�}t�}||_|��t�d�t�|j�}|td<|jj|jks'J�|j	D]}t
�|�q*dS)N�
�test_reference_tt)rPr"r&rFrHrIrJrKrGr#rDrE)rMrN�orrr�test_referencexs

�r\cCs&t�}|td<d|_d|_|��dS)N�test_subclass_tz
a subclassi���)r(rGrrrSrWrrr�
test_subclass�s
r^cCs^t�}|td<d|_|��t�d�t�|j�}|td<|jdks$J�t|j�dks-J�dS)N�test_password_trr?�test_password_tt)	r*rGr+rSrHrIrJrK�strrTrrr�
test_password�s
rbcCsht�}|td<d|_gd�|_|��t�|j�}|td<|j|jks%J�|jD]	}t|t�s1J�q(dS)N�test_list_tza list of ints)rB���r?�test_list_tt)	r-rGrr/rFrJrK�
isinstancer.)rMrN�nrrr�	test_list�s

�rjcCsjt�}|��|td<t�}d|_|g|_|��t�d�|td<t�|j	�}|jdj	|j	ks3J�dS)N�test_list_ref_trr?�test_list_ref_ttr)
rrFrGr3rr4rHrIrJrK)rMrN�tttrrr�test_list_reference�s
rncCspt�}dttt����}||_|��|td<t�d�t�}|td<||_z|��J�ty7YdSw)Nr�
test_unique_trY�test_unique_tt)	r:rar.rHrrFrGrIr
)rMrrNrrr�test_unique�s
�rqcCsHt�}|��|td<t�d�t�|j�}|j��|j��ks"J�dS)N�test_datetime_tr?)	r5rFrGrHrIrJrKr8�	timetuplerTrrr�
test_datetime�s
rtcCs�t�d�t�}t�d�t�t�d�t|�t�d�t�t�d�t�t�d�t�t�d�t�t�d�t	�t�d	�t
�dS)
NrPrXr\r^rbrjrnrtrq)rD�inforPrXr\r^rbrjrnrtrq)�t1rrr�test�s$









rw�__main__)N).�loggingrHr�boto.sdb.db.modelr�boto.sdb.db.propertyrrrrrr	r
rr�boto.exceptionr
�basicConfig�	getLoggerrD�setLevel�DEBUGrGrrrr"r(r*r-r1r3r5r:rPrUrXr\r^rbrjrnrqrtrwrrrrr�<module>sJ


	
�

https://t.me/RX1948 - 2025