https://t.me/AnonymousX5
Server : Apache
System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64
User : njnconst ( 1116)
PHP Version : 8.4.18
Disable Function : NONE
Directory :  /usr/lib64/python2.7/site-packages/django/contrib/gis/tests/geoapp/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.7/site-packages/django/contrib/gis/tests/geoapp/test_regress.pyc
�
r�\c@@sddlmZmZddlmZddlmZddlmZmZddl	m
Z
ddlmZmZddl
mZmZddlmZdd	lmZer�d
dlmZmZmZmZneeo�ed�d
efd��Y�ZdS(i(tabsolute_importtunicode_literals(tdatetime(tHAS_GEOS(tno_mysqlt
no_spatialite(t
render_to_kmz(tHAS_SPATIAL_DBt	no_oracle(tCounttMin(tTestCase(t
skipUnlessi(tCitytPennsylvaniaCitytStatetTruthu!Geos and spatial db are required.tGeoRegressionTestscB@sYeZd�Zd�Zeed���Zd�Zd�Ze	d��Z
d�ZRS(cC@s�tjjdd�j}|j�}|jd7_|jd7_tjjdd�jd|�|j	|tjjdd�j�tjjdd�jd|�|j	|tjjdd�j�dS(u)Testing GeoQuerySet.update(). See #10411.tnameuPueblog{�G�zt?tpointN(
R
tobjectstgetRtclonetytxtfiltertupdatetassertEqual(tselftpnttbak((sN/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/test_regress.pyttest_updates"cC@s>d}i|d6|d6dd6g}tdi|d6�}dS(	u8Testing `render_to_kmz` with non-ASCII data. See #11624.uÅland Islandsunameudescriptionu2<Point><coordinates>5.0,23.0</coordinates></Point>ukmlugis/kml/placemarks.kmluplacesN(R(RRtplacestkmz((sN/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/test_regress.pyttest_kmz!s


cC@s�tjjdd�j}|j|j|j|jf}tjjdd�j�}x0t||�D]\}}|j	||d�qaWdS(u<Testing `extent` on a table with a single point. See #11827.RuPuebloiN(
R
RRRRRRtextenttziptassertAlmostEqual(RRtref_extR#tref_valtval((sN/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/test_regress.pyttest_extent*s
c	C@s�tddd�}tjjdddddd	d
|�}|j|tjjdd�d
�|j|tjjtd��d�dS(uETesting dates are converted properly, even on SpatiaLite. See #16408.iAiiRu	MansfieldtcountyuTiogaRuPOINT(-77.071445 41.823881)tfoundedufoundedudayiufounded__minN(RRRtcreateRt	datetimest	aggregateR
(RR+t	mansfield((sN/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/test_regress.pyttest_unicode_date4s
	#cC@s\tjjdd�}tjjd|j�}tjjd|�}|j|j�d�dS(uHTesting that PostGISAdapter.__eq__ does check empty strings. See #13670.RuPueblotpoly__containstid__iniN(R
RRRRRRtcount(Rtpueblotstatetcities_within_state((sN/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/test_regress.pyttest_empty_count<scC@sf|jttjjtd��jd��t�|jttjjtd��jd��t�dS(uHRegression for #16409. Make sure defer() and only() work with annotate()upointunameN(tassertIsInstancetlistR
RtannotateR	tdefertonly(R((sN/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/test_regress.pyt test_defer_or_only_with_annotateIs1cC@s�tjjdt�}tjjdt�}tjjd|j�j}tjjd|j�j}|j|t	�|j|t	�|j
|t�|j
|t�dS(uFTesting Boolean value conversion with the spatial backend, see #15169.R(tpkN(RRR,tTruetFalseRR>R(R8tboolR(Rtt1tt2tval1tval2((sN/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/test_regress.pyttest_boolean_conversionOs(t__name__t
__module__RR"RRR)R0R7RR=RF(((sN/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/test_regress.pyRs						
N(t
__future__RRRtdjango.contrib.gis.geosRtdjango.contrib.gis.tests.utilsRRtdjango.contrib.gis.shortcutsRRRtdjango.db.modelsR	R
tdjango.testRtdjango.utils.unittestRtmodelsR
RRRR(((sN/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/test_regress.pyt<module>s%

https://t.me/AnonymousX5 - 2025