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/redirects/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.7/site-packages/django/contrib/redirects/tests.pyc
�
r�\c@s�ddlmZddlmZddlmZddlmZddlm	Z	ddl
mZddlm
Z
dd	lmZe	d
edeej�dgd
d�defd��Y�ZdS(i����(tsettings(tSite(tImproperlyConfigured(tTestCase(toverride_settings(tsixi(tRedirectFallbackMiddleware(tRedirecttAPPEND_SLASHtMIDDLEWARE_CLASSESs>django.contrib.redirects.middleware.RedirectFallbackMiddlewaretSITE_IDt
RedirectTestscBs�eZd�Zd�Zd�Zede�d��Zede�d��Zd�Z	edge
jD]Zedkrje^qj�d	��Z
RS(
cCstjjdtj�|_dS(Ntpk(RtobjectstgetRR
tsite(tself((s@/tmp/pip-install-XxeQeY/django/django/contrib/redirects/tests.pytsetUpscCsAtjjd|jdddd�}|jtj|�d�dS(NRtold_paths/initialtnew_paths/new_targets/initial ---> /new_target(RR
tcreateRtassertEqualRt	text_type(Rtr1((s@/tmp/pip-install-XxeQeY/django/django/contrib/redirects/tests.pyt
test_modelscCsTtjjd|jdddd�|jjd�}|j|ddddd	�dS(
NRRs/initialRs/new_targettstatus_codei-ttarget_status_codei�(RR
RRtclientRtassertRedirects(Rtresponse((s@/tmp/pip-install-XxeQeY/django/django/contrib/redirects/tests.pyt
test_redirects
	RcCsTtjjd|jdddd�|jjd�}|j|dddd	d
�dS(NRRs	/initial/Rs/new_target/s/initialRi-Ri�(RR
RRRRR(RR((s@/tmp/pip-install-XxeQeY/django/django/contrib/redirects/tests.pyttest_redirect_with_append_slash#s
	cCsTtjjd|jdddd�|jjd�}|j|dddd	d
�dS(NRRs
/initial/?fooRs/new_target/s/initial?fooRi-Ri�(RR
RRRRR(RR((s@/tmp/pip-install-XxeQeY/django/django/contrib/redirects/tests.pyt0test_redirect_with_append_slash_and_query_string+s
	cCsKtjjd|jdddd�|jjd�}|j|jd�dS(s,When the redirect target is '', return a 410RRs/initialRti�N(RR
RRRRRR(RR((s@/tmp/pip-install-XxeQeY/django/django/contrib/redirects/tests.pyttest_response_gone3stINSTALLED_APPSsdjango.contrib.sitescCs!|jt��t�WdQXdS(N(tassertRaisesRR(R((s@/tmp/pip-install-XxeQeY/django/django/contrib/redirects/tests.pyttest_sites_not_installed:s(t__name__t
__module__RRRRtTrueRR R"RR#tappR%(((s@/tmp/pip-install-XxeQeY/django/django/contrib/redirects/tests.pyRs				N(tdjango.confRtdjango.contrib.sites.modelsRtdjango.core.exceptionsRtdjango.testRtdjango.test.utilsRtdjango.utilsRt
middlewareRtmodelsRtFalsetlistR	R(((s@/tmp/pip-install-XxeQeY/django/django/contrib/redirects/tests.pyt<module>s
	

https://t.me/AnonymousX5 - 2025