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 :  /proc/self/root/lib/python2.7/site-packages/south/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/lib/python2.7/site-packages/south/tests/logger.pyc
�
(��Pc@s�ddlZddlZddlZddlZddlmZddlZddlmZddl	m
Z
mZddlm
Z
ddlmZdejfd��YZdS(	i����N(tunittest(tsettings(t
connectiontmodels(tdb(tclose_loggert
TestLoggercBs;eZdZd�Zd�Zd�Zd�Zd�ZRS(s|
    Tests if the logging is working reasonably. Some tests ignored if you don't
    have write permission to the disk.
    cCs&tt_tjdd�d|_dS(Ntsuffixs
.south.logi(tFalseRtdebugttempfiletmkstempt	test_path(tself((s6/usr/lib/python2.7/site-packages/south/tests/logger.pytsetUps	cCs2tt_tjddtjdt�fg�dS(s8Does logging degrade nicely if SOUTH_LOGGING_ON not set?ttest9temail_confirmedtdefaultN(RRtSOUTH_LOGGING_ONRtcreate_tableRtBooleanField(R
((s6/usr/lib/python2.7/site-packages/south/tests/logger.pyttest_db_execute_logging_nofiles	cCsmtt_tj�}tjd|dtj�tj	ddt
jdt�fg�|j|j
�d�dS(s�
        Does the south logger avoid outputing debug information with
        south logging turned off and python logging configured with
        a basic config?"
        tstreamtlevelttest12RRtN(RRRtiotStringIOtloggingtbasicConfigtWARNINGRRRRtassertEqualtgetvalue(R
tlogging_stream((s6/usr/lib/python2.7/site-packages/south/tests/logger.pyt-test_db_execute_logging_off_with_basic_config!s
	%cCs�tt_|jt_yt|jd�}Wntk
r?dSX|j�tj	ddt
jdt�fg�t
�ytj|j�WnnXdS(s/Does logging work when passing in a valid file?twNttest10RR(tTrueRRRtSOUTH_LOGGING_FILEtopentIOErrortcloseRRRRRRtostremove(R
tfh((s6/usr/lib/python2.7/site-packages/south/tests/logger.pyt!test_db_execute_logging_validfile3s	

%cCsDtt_dt_|jttjddt	j
dt�fg�dS(s;Does logging raise an error if there is a missing filename?ttest11RRN(R%RRtNoneR&tassertRaisesR(RRRRR(R
((s6/usr/lib/python2.7/site-packages/south/tests/logger.pyt'test_db_execute_logging_missingfilenameIs		(t__name__t
__module__t__doc__RRR"R-R1(((s6/usr/lib/python2.7/site-packages/south/tests/logger.pyRs				(RRR*R
tsouth.testsRtsystdjango.confRt	django.dbRRtsouth.dbRtsouth.loggerRtTestCaseR(((s6/usr/lib/python2.7/site-packages/south/tests/logger.pyt<module>s

https://t.me/AnonymousX5 - 2025