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_sitemaps.pyc
�
r�\c@@s�ddlmZddlmZddlmZddlZddlmZddl	m
Z
ddlmZddl
mZdd	lmZdd
lmZe
r�ddlmZmZnee
o�ed
�defd��Y�ZdS(i(tabsolute_import(tBytesIO(tminidomN(tsettings(tHAS_GEOS(tHAS_SPATIAL_DB(tSite(tTestCase(t
skipUnlessi(tCitytCountrys!Geos and spatial db are required.tGeoSitemapTestcB@sDeZdZd�Zd�Zd�Zd�Zd�Zd�ZRS(s$django.contrib.gis.tests.geoapp.urlscC@sAtdtjdddd�j�tjj|_ttj_dS(Ntidtdomainsexample.comtname(RRtSITE_IDtsavet_metat	installedtold_Site_meta_installedtTrue(tself((sO/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/test_sitemaps.pytsetUps"cC@s|jtj_dS(N(RRRR(R((sO/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/test_sitemaps.pyttearDownscC@sEtg|jD]}|j^q
�}t|�}|j||�dS(s Taken from syndication/tests.py.N(tsett
childNodestnodeNametassertEqual(Rtelemtexpectedtntactual((sO/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/test_sitemaps.pytassertChildNodess%cC@sctj|jjd�j�}|j}|j|jd�d�|jdt|j	d���dS(sTests geographic sitemap index.s/sitemap.xmltxmlnss+http://www.sitemaps.org/schemas/sitemap/0.9itsitemapN(
RtparseStringtclienttgettcontentt
firstChildRtgetAttributetlentgetElementsByTagName(Rtdoctindex((sO/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/test_sitemaps.pyttest_geositemap_index%s	c
C@s+x$dD]}tj|jjd|�j�}|j}|j|jd�d�|j|jd�d�|jd�}|jd	t	|��x�|D]�}|j
|d
dg�|jd�d}|jd
�d}|j||jdj�|jd
�djdjj
d�d}|dkrItj|jj|�j�}	n�|dkr�t|jj|�j�}
tj|
�}|jdt	|j��|jd|jdj�tj|jd��}	nd|kr�t}nd|kr�t}n|j|jj�t	|	jd���q�WqWdS(s"Tests KML/KMZ geographic sitemaps.tkmltkmzs/sitemaps/%s.xmlR!s+http://www.sitemaps.org/schemas/sitemap/0.9s	xmlns:geos-http://www.google.com/geo/schemas/sitemap/1.0turlitlocsgeo:geois
geo:formatshttp://example.comisdoc.kmltcitytcountryt	PlacemarkN(R.R/(RR#R$R%R&R'RR(R*R)R RtdatatsplitRtzipfiletZipFiletfilelisttfilenametreadR	R
tobjectstcount(
Rtkml_typeR+turlsetturlsR0tgeo_elemt
geo_formattkml_urltkml_doctbuftzftmodel((sO/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/test_sitemaps.pyttest_geositemap_kml-s4
"	
*!		cC@s�ddlm}tj|jjd�j�}|j}|j|j	d�d�|j|j	d�d�|j
d�}|jt|�t|��xd|D]\}|j|d	d
g�|j
d
�d}|j
d�d}|jd
|j
dj�q�WdS(s!Tests GeoRSS geographic sitemaps.i(t	feed_dicts/sitemaps/georss.xmlR!s+http://www.sitemaps.org/schemas/sitemap/0.9s	xmlns:geos-http://www.google.com/geo/schemas/sitemap/1.0R0R1sgeo:geois
geo:formattgeorssN(tfeedsRIRR#R$R%R&R'RR(R*R)R RR5(RRIR+R?R@R0RARB((sO/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/test_sitemaps.pyttest_geositemap_georssTs	
(	t__name__t
__module__R@RRR R-RHRL(((sO/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/test_sitemaps.pyRs					'(t
__future__RtioRtxml.domRR7tdjango.confRtdjango.contrib.gis.geosRtdjango.contrib.gis.tests.utilsRtdjango.contrib.sites.modelsRtdjango.testRtdjango.utils.unittestRtmodelsR	R
R(((sO/tmp/pip-install-XxeQeY/django/django/contrib/gis/tests/geoapp/test_sitemaps.pyt<module>s

https://t.me/AnonymousX5 - 2025