Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

hemamaps / django-crispy-forms   python

Repository URL to install this package:

Version: 1.6.0 

/ tests / __pycache__ / test_form_helper.cpython-27-PYTEST.pyc

ó
ûÖU
Kc@sØddlmZddlZddljjZddlZddl	Z	ddl	m
Z
ddlmZddl
mZddlmZddlmZmZddlZddlmZd	d
lmZd	dlmZmZmZd	dl
mZdd
lm Z m!Z!m"Z"m#Z#m$Z$ddl%m&Z&ddl'm(Z(m)Z)ddl*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0m1Z1ddl2m3Z3ddl4m5Z5d„Z6d„Z7d„Z8d„Z9d„Z:d„Z;d„Z<d„Z=d„Z>d„Z?d„Z@d„ZAd„ZBd „ZCd!„ZDd"„ZEd#„ZFd$„ZGd%„ZHd&„ZId'„ZJd(„ZKed)„ƒZLed*„ƒZMed+„ƒZNed,„ƒZOed-„ƒZPed.„ƒZQed/„ƒZRed0„ƒZSdS(1iÿÿÿÿ(tunicode_literalsN(tforms(treverse(tformset_factory(t_get_new_csrf_key(tTemplateSyntaxErrortContext(t
ugettext_lazyi(tget_template_from_string(t
only_uni_formtonly_bootstrap3tonly_bootstrap(tTestForm(tFieldWithButtonstPrependedAppendedTexttAppendedTextt
PrependedTexttStrictButton(t	text_type(t
FormHelpertFormHelpersException(tLayouttSubmittResettHiddentButtont
MultiFieldtField(trender_crispy_form(tCrispyFormNodecCsµ
tƒ}|jtddddƒƒ|jtddƒƒ|jtddƒƒ|jtd	d
ƒƒtdƒ}titƒd6|d
6ƒ}|j	|ƒ}d}||k}|rWt
jdf|fdf||fƒit
j|ƒd6dt
jƒkp
t
j|ƒrt
j|ƒndd6}ddi|d6}tt
j|ƒƒ‚nt}}d}||k}|rt
jdf|fdf||fƒit
j|ƒd6dt
jƒkpÏt
j|ƒrát
j|ƒndd6}ddi|d6}tt
j|ƒƒ‚nt}}d}||k}|rÛt
jdf|fdf||fƒit
j|ƒd6dt
jƒkp‘t
j|ƒr£t
j|ƒndd6}ddi|d6}tt
j|ƒƒ‚nt}}d}||k}|rt
jdf|fdf||fƒit
j|ƒd6dt
jƒkpSt
j|ƒret
j|ƒndd6}ddi|d6}tt
j|ƒƒ‚nt}}d}||k}|r_t
jdf|fdf||fƒit
j|ƒd6dt
jƒkpt
j|ƒr't
j|ƒndd6}ddi|d6}tt
j|ƒƒ‚nt}}|jdkrÁd}||k}|r0t
jdf|fdf||fƒit
j|ƒd6dt
jƒkpæt
j|ƒrøt
j|ƒndd6}ddi|d6}tt
j|ƒƒ‚nt}}d}||k}|ròt
jdf|fdf||fƒit
j|ƒd6dt
jƒkp¨t
j|ƒrºt
j|ƒndd6}ddi|d6}tt
j|ƒƒ‚nt}}d}||k}|r´t
jdf|fdf||fƒit
j|ƒd6dt
jƒkpjt
j|ƒr|t
j|ƒndd6}ddi|d6}tt
j|ƒƒ‚nt}}nðd}||k}|ryt
jdf|fdf||fƒit
j|ƒd6dt
jƒkp/t
j|ƒrAt
j|ƒndd6}ddi|d6}tt
j|ƒƒ‚nt}}d}||k}|r;t
jdf|fdf||fƒit
j|ƒd6dt
jƒkpñt
j|ƒrt
j|ƒndd6}ddi|d6}tt
j|ƒƒ‚nt}}d }||k}|rýt
jdf|fdf||fƒit
j|ƒd6dt
jƒkp³t
j|ƒrÅt
j|ƒndd6}ddi|d6}tt
j|ƒƒ‚nt}}tj}d!}	||	|ƒ}
t|
ƒ}d"}||k}
|
r—
t
jd#f|
fd$f||fƒit
j|
ƒd%6d&t
jƒkpŸ	t
jtƒr±	t
jtƒnd&d'6d(t
jƒkpÖ	t
jtƒrè	t
jtƒnd(d6t
j|ƒd)6t
j|ƒd6t
j|	ƒd6dt
jƒkp=
t
j|ƒrO
t
j|ƒndd*6t
j|ƒd+6}dd,i|d-6}tt
j|ƒƒ‚nt}}	}
}}
}dS(.Nu	my-submituSubmitt	css_classubutton whiteumy-resetuResetu	my-hiddenuHiddenu	my-buttonuButtonuP
        {% load crispy_forms_tags %}
        {% crispy form form_helper %}
    uformuform_helpertins%(py1)s in %(py3)stpy1thtmltpy3tsassert %(py5)stpy5uid="submit-id-my-submit"uid="reset-id-my-reset"uname="my-hidden"uid="button-id-my-button"uuni_formusubmit submitButtonureset resetButtonuclass="button"uclass="btn"ubtn btn-primaryubtn btn-inverseu<input[^>]+> <is==sw%(py10)s
{%(py10)s = %(py0)s(%(py8)s
{%(py8)s = %(py3)s
{%(py3)s = %(py1)s.findall
}(%(py5)s, %(py6)s)
})
} == %(py13)stpy8tlentpy0tretpy10tpy6tpy13sassert %(py15)stpy15(Rt	add_inputRRRRRRRtrendert
@pytest_art_call_reprcomparet	_safereprt@py_builtinstlocalst_should_repr_global_nametAssertionErrort_format_explanationtNonetCRISPY_TEMPLATE_PACKR(tfindallR&(tsettingstform_helperttemplatetcR!t@py_assert0t@py_assert2t@py_format4t@py_format6t@py_assert4t@py_assert7t@py_assert9t@py_assert12t@py_assert11t@py_format14t@py_format16((s`/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_form_helper.pyttest_inputs"sÆ		r
r
r
r
r
r
r
r
r
r
r
	ÿ!cCs,tƒ}tjtƒd|_WdQXdS(Nu	superPost(RtpytesttraisesRtform_method(R;((s`/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_form_helper.pyttest_invalid_form_methodAs	cCs'
tƒ}d|_d|_d|_d|_d|_tdƒ}tidd6d	d
6ƒ}|jƒt	i|d6|d6ƒ}|j
|ƒ}|j}d
}||ƒ}d}	||	k}
|
s‡tj
d*|
fd+||	fƒidtjƒkstj|ƒrtj|ƒndd6tj|	ƒd6tj|ƒd6tj|ƒd6tj|ƒd6}d,i|d6}ttj|ƒƒ‚nd}}}}
}	d}
|
|k}|sJtj
d-|fd.|
|fƒitj|
ƒd6dtjƒkstj|ƒrtj|ƒndd6}d/i|d6}ttj|ƒƒ‚nd}
}d }
|
|k}|stj
d0|fd1|
|fƒitj|
ƒd6dtjƒks¾tj|ƒrÍtj|ƒndd6}d2i|d6}ttj|ƒƒ‚nd}
}d!}
|
|k}|s¸tj
d3|fd4|
|fƒitj|
ƒd6dtjƒksutj|ƒr„tj|ƒndd6}d5i|d6}ttj|ƒƒ‚nd}
}d"}
d}t|ƒ}|
|}
|
|k}	|	sâtj
d6|	fd7|
|fƒitj|
ƒd6d$tjƒksHtjtƒrWtjtƒnd$d6tj|ƒd6tj|ƒd6dtjƒksŸtj|ƒr®tj|ƒndd6}d8i|d6}ttj|ƒƒ‚nd}
}}}
}	|jd%krÁd&}
|
|k}|s´tj
d9|fd:|
|fƒitj|
ƒd6dtjƒksqtj|ƒr€tj|ƒndd6}d;i|d6}ttj|ƒƒ‚nd}
}nd}
|
|k}|sntj
d<|fd=|
|fƒitj|
ƒd6dtjƒks+tj|ƒr:tj|ƒndd6}d>i|d6}ttj|ƒƒ‚nd}
}d'}
|
|k}|s%tj
d?|fd@|
|fƒitj|
ƒd6dtjƒksâtj|ƒrñtj|ƒndd6}dAi|d6}ttj|ƒƒ‚nd}
}t|_|j
|ƒ}d
}
|
|k}|sôtj
dB|fdC|
|fƒitj|
ƒd6dtjƒks±tj|ƒrÀtj|ƒndd6}dDi|d6}ttj|ƒƒ‚nd}
}d}
|
|k}|s«tj
dE|fdF|
|fƒitj|
ƒd6dtjƒkshtj|ƒrwtj|ƒndd6}dGi|d6}ttj|ƒƒ‚nd}
}d }
|
|k}|sb	tj
dH|fdI|
|fƒitj|
ƒd6dtjƒks	tj|ƒr.	tj|ƒndd6}dJi|d6}ttj|ƒƒ‚nd}
}d!}
|
|k}|s
tj
dK|fdL|
|fƒitj|
ƒd6dtjƒksÖ	tj|ƒrå	tj|ƒndd6}dMi|d6}ttj|ƒƒ‚nd}
}dS(NNuthis-form-rocksuforms-that-rockuGETusimpleActionuERRORSuT
        {% load crispy_forms_tags %}
        {% crispy testForm form_helper %}
    uwargameu	password1ugodu	password2utestFormuform_helperu<formis==sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)sR!R'tpy9tpy2tpy4R*R#sassert %(py11)stpy11Rs%(py1)s in %(py3)sR R"sassert %(py5)sR$umethod="get"uid="this-form-rocks"uaction="%s"s=(%(py1)s %% %(py6)s
{%(py6)s = %(py2)s(%(py4)s)
}) in %(py9)sRuuni_formuclass="uniFormu<li>Passwords dont match</li>snot ins%(py1)s not in %(py3)s(s==(sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)ssassert %(py11)s(R(s%(py1)s in %(py3)ssassert %(py5)s(R(s%(py1)s in %(py3)ssassert %(py5)s(R(s%(py1)s in %(py3)ssassert %(py5)s(R(s=(%(py1)s %% %(py6)s
{%(py6)s = %(py2)s(%(py4)s)
}) in %(py9)ssassert %(py11)s(R(s%(py1)s in %(py3)ssassert %(py5)s(R(s%(py1)s in %(py3)ssassert %(py5)s(R(s%(py1)s in %(py3)ssassert %(py5)s(snot in(s%(py1)s not in %(py3)ssassert %(py5)s(snot in(s%(py1)s not in %(py3)ssassert %(py5)s(snot in(s%(py1)s not in %(py3)ssassert %(py5)s(snot in(s%(py1)s not in %(py3)ssassert %(py5)s(Rtform_idt
form_classRLtform_actiontform_error_titleRRtis_validRR.tcountR/R0R2R3R4R1R5R6R7RR8tFalsetform_tag(R:R;R<tformR=R!t@py_assert1t@py_assert3t@py_assert5t@py_assert8RCt@py_format10t@py_format12R>R?R@RA((s`/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_form_helper.pyt$test_form_with_helper_without_layoutGsÒ							
	œl
l
l

Ãl
l
l
	l
l
l
lc
Cs„tidd6dd6ƒ}tƒ|_t|j_|jƒtdƒ}ti|d6ƒ}|j|ƒ}d}||k}|r"t	j
df|fd	f||fƒit	j|ƒd
6dtj
ƒkpØt	j|ƒrêt	j|ƒndd6}d
di|d6}tt	j|ƒƒ‚nt}}d}t|ƒ}t|ƒ}	|	|k}
|
rŠt	j
df|
fdf|	|fƒidtj
ƒkp¢t	j|ƒr´t	j|ƒndd6dtj
ƒkpÙt	jtƒrët	jtƒndd6dtj
ƒkpt	jtƒr"t	jtƒndd
6t	j|ƒd6t	j|ƒd6t	j|	ƒd6}d
di|d6}tt	j|ƒƒ‚nt}}}	}
d}||k}|rTt	j
df|fd	f||fƒit	j|ƒd
6dtj
ƒkp
t	j|ƒrt	j|ƒndd6}d
di|d6}tt	j|ƒƒ‚nt}}t|j_ti|d6ƒ}|j|ƒ}d}||k}|rDt	j
df|fdf||fƒit	j|ƒd
6dtj
ƒkpút	j|ƒrt	j|ƒndd6}d
di|d6}tt	j|ƒƒ‚nt}}d}t|ƒ}t|ƒ}	|	|k}
|
r¬t	j
df|
fdf|	|fƒidtj
ƒkpÄt	j|ƒrÖt	j|ƒndd6dtj
ƒkpût	jtƒr
t	jtƒndd6dtj
ƒkp2t	jtƒrDt	jtƒndd
6t	j|ƒd6t	j|ƒd6t	j|	ƒd6}d
di|d6}tt	j|ƒƒ‚nt}}}	}
d}||k}|rvt	j
df|fdf||fƒit	j|ƒd
6dtj
ƒkp,t	j|ƒr>t	j|ƒndd6}d
di|d6}tt	j|ƒƒ‚nt}}dS(Nuwargameu	password1ugodu	password2uH
        {% load crispy_forms_tags %}
        {% crispy testForm %}
    utestFormu<li>Passwords dont match</li>Rs%(py1)s in %(py3)sR R!R"R#sassert %(py5)sR$uThis field is required.sN%(py7)s
{%(py7)s = %(py0)s(%(py5)s
{%(py5)s = %(py1)s(%(py3)s)
})
} in %(py9)sRNRR't_tpy7sassert %(py11)sRQuerrorsnot ins%(py1)s not in %(py3)ssR%(py7)s
{%(py7)s = %(py0)s(%(py5)s
{%(py5)s = %(py1)s(%(py3)s)
})
} not in %(py9)s(RRthelpertTruetform_show_errorsRVRRR.R/R0R1R2R3R4R5R6R7RbRRX(
RZR<R=R!R>R?R@RARBt@py_assert6R^R_R`((s`/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_form_helper.pyt&test_form_show_errors_non_field_errorsqsv
	r
ÿr
r
ÿrc	Csltƒ}tƒ|_t|j_t|ƒ}|j}d}||ƒ}d}||k}|s%tjd|fd||fƒidt	j
ƒks¢tj|ƒr±tj|ƒndd6tj|ƒd6tj|ƒd6tj|ƒd	6tj|ƒd
6}di|d
6}t
tj|ƒƒ‚nd}}}}}tƒ}tƒ|_t|j_t|ƒ}dS(Nurequired="required"is==sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)sR!R'RNRORPR*R#sassert %(py11)sRQ(s==(sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)ssassert %(py11)s(RRRdRethtml5_requiredRRWR/R0R2R3R4R1R5R6R7RX(	RZR!R[R\R]R^RCR_R`((s`/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_form_helper.pyttest_html5_requireds$		œ	cCs­tƒ}tƒ|_idd6dd6|j_t|ƒ}d}||k}|sètjd|fd||fƒitj|ƒd6d	tj	ƒks¥tj
|ƒr´tj|ƒnd	d
6}di|d
6}ttj|ƒƒ‚nd}}d}||k}|sŸtjd|fd||fƒitj|ƒd6d	tj	ƒks\tj
|ƒrktj|ƒnd	d
6}di|d
6}ttj|ƒƒ‚nd}}dS(Nu
TestIdFormuiduoffuautocompleteuautocomplete="off"Rs%(py1)s in %(py3)sR R!R"R#sassert %(py5)sR$uid="TestIdForm"(R(s%(py1)s in %(py3)ssassert %(py5)s(R(s%(py1)s in %(py3)ssassert %(py5)s(RRRdtattrsRR/R0R1R2R3R4R5R6R7(RZR!R>R?R@RA((s`/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_form_helper.pyt
test_attrsžs$	l
lcCs¸tƒ}idd6dd6dd6dd6|_td	d
ƒ}|j|itƒ}|d}d}||k}|sâtjd|fd||fƒitj|ƒd6tj|ƒd6}di|d6}ttj	|ƒƒ‚nd}}}|dd}d}||k}|s„tjd|fd||fƒitj|ƒd6tj|ƒd6}di|d6}ttj	|ƒƒ‚nd}}}d}|d}||k}|s"tjd|fd||fƒitj|ƒd6tj|ƒd6}d i|d6}ttj	|ƒƒ‚nd}}}d}|dd}||k}|sÄtjd!|fd"||fƒitj|ƒd6tj|ƒd6}d#i|d6}ttj	|ƒƒ‚nd}}}|d}d}||k}|sbtjd$|fd%||fƒitj|ƒd6tj|ƒd6}d&i|d6}ttj	|ƒƒ‚nd}}}|dd}d}||k}|stjd'|fd(||fƒitj|ƒd6tj|ƒd6}d)i|d6}ttj	|ƒƒ‚nd}}}|dd}d}||k}|s¦tjd*|fd+||fƒitj|ƒd6tj|ƒd6}d,i|d6}ttj	|ƒƒ‚nd}}}dS(-Nu	test-formuidu
test-formsuclassusubmit/test/formuactionuoffuautocompleteuformuhelperuform_ids==s%(py1)s == %(py4)sR RPR#sassert %(py6)sR*u
form_attrsu
form_classRs%(py1)s in %(py4)suform_action(s==(s%(py1)s == %(py4)ssassert %(py6)s(s==(s%(py1)s == %(py4)ssassert %(py6)s(R(s%(py1)s in %(py4)ssassert %(py6)s(R(s%(py1)s in %(py4)ssassert %(py6)s(s==(s%(py1)s == %(py4)ssassert %(py6)s(s==(s%(py1)s == %(py4)ssassert %(py6)s(s==(s%(py1)s == %(py4)ssassert %(py6)s(RRkRtget_response_dictRXR/R0R1R5R6R7(RdtnodetcontextR>R\R?t@py_format5t@py_format7((s`/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_form_helper.pyttest_template_context¨s€	

EE
EE
EEEcCstƒ}d|_d|_d|_tddƒ}|j|itƒ}|d}d}||k}|sØtjd|fd||fƒitj	|ƒd	6tj	|ƒd
6}di|d
6}t
tj|ƒƒ‚nd}}}|dd}d}||k}|sztjd|fd||fƒitj	|ƒd	6tj	|ƒd
6}di|d
6}t
tj|ƒƒ‚nd}}}d}|d}||k}|stjd|fd||fƒitj	|ƒd	6tj	|ƒd
6}di|d
6}t
tj|ƒƒ‚nd}}}d}|dd}||k}|sºtjd|fd ||fƒitj	|ƒd	6tj	|ƒd
6}d!i|d
6}t
tj|ƒƒ‚nd}}}|d}d}||k}|sXtjd"|fd#||fƒitj	|ƒd	6tj	|ƒd
6}d$i|d
6}t
tj|ƒƒ‚nd}}}|dd}d}||k}|sútjd%|fd&||fƒitj	|ƒd	6tj	|ƒd
6}d'i|d
6}t
tj|ƒƒ‚nd}}}dS((Nu	test-formu
test-formsusubmit/test/formuformuhelperuform_ids==s%(py1)s == %(py4)sR RPR#sassert %(py6)sR*u
form_attrsuidu
form_classRs%(py1)s in %(py4)suclassuform_actionuaction(s==(s%(py1)s == %(py4)ssassert %(py6)s(s==(s%(py1)s == %(py4)ssassert %(py6)s(R(s%(py1)s in %(py4)ssassert %(py6)s(R(s%(py1)s in %(py4)ssassert %(py6)s(s==(s%(py1)s == %(py4)ssassert %(py6)s(s==(s%(py1)s == %(py4)ssassert %(py6)s(
RRRRSRTRRmRXR/R0R1R5R6R7(RdRnRoR>R\R?RpRq((s`/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_form_helper.pyt&test_template_context_using_form_attrs¼sl				
EE
EE
EEcCs´tƒ}d|_|d}d}||k}|s¢tjd
|fd||fƒitj|ƒd6tj|ƒd6}di|d	6}ttj|ƒƒ‚nd}}}dS(
Nu	test-formuform_ids==s%(py1)s == %(py4)sR RPR#sassert %(py6)sR*(s==(s%(py1)s == %(py4)ssassert %(py6)s(RRRR/R0R1R5R6R7(RdR>R\R?RpRq((s`/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_form_helper.pyttest_template_helper_accessÌs		
EcCs#tdƒ}titƒd6ƒ}|j|ƒ}d}||k}|sÞtjd|fd||fƒitj|ƒd6dtjƒks›tj	|ƒrªtj|ƒndd6}di|d6}t
tj|ƒƒ‚nd}}d}||k}|s•tjd|fd||fƒitj|ƒd6dtjƒksRtj	|ƒratj|ƒndd6}di|d6}t
tj|ƒƒ‚nd}}d
}||k}|sLtjd|fd||fƒitj|ƒd6dtjƒks	tj	|ƒrtj|ƒndd6}di|d6}t
tj|ƒƒ‚nd}}|j
dkrd}||k}|stjd|fd||fƒitj|ƒd6dtjƒksÏtj	|ƒrÞtj|ƒndd6}di|d6}t
tj|ƒƒ‚nd}}ndS(NuD
        {% load crispy_forms_tags %}
        {% crispy form %}
    uformu<formRs%(py1)s in %(py3)sR R!R"R#sassert %(py5)sR$u
method="post"uactionsnot ins%(py1)s not in %(py3)suuni_formuuniForm(R(s%(py1)s in %(py3)ssassert %(py5)s(R(s%(py1)s in %(py3)ssassert %(py5)s(snot in(s%(py1)s not in %(py3)ssassert %(py5)s(R(s%(py1)s in %(py3)ssassert %(py5)s(RRRR.R/R0R1R2R3R4R5R6R7R8(R:R<R=R!R>R?R@RA((s`/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_form_helper.pyttest_without_helperÓsB	l
l
l
lc
Cs×|j}|dkrdpd}td|ƒ}titƒd6ƒ}|j|ƒ}|dkrd}||k}|stjd|fd||fƒitj|ƒd6d	tj	ƒksÌtj
|ƒrÛtj|ƒnd	d
6}di|d
6}	ttj|	ƒƒ‚nd}}n·d}||k}|sÉtjd|fd||fƒitj|ƒd6d	tj	ƒks†tj
|ƒr•tj|ƒnd	d
6}di|d
6}	ttj|	ƒƒ‚nd}}dS(Nuuni_formu	bootstrapuM
        {%% load crispy_forms_tags %%}
        {%% crispy form "%s" %%}
    uformu
control-groupRs%(py1)s in %(py3)sR R!R"R#sassert %(py5)sR$uuniForm(R(s%(py1)s in %(py3)ssassert %(py5)s(R(s%(py1)s in %(py3)ssassert %(py5)s(R8RRRR.R/R0R1R2R3R4R5R6R7(
R:tcurrent_packt
override_packR<R=R!R>R?R@RA((s`/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_form_helper.pyt#test_template_pack_override_compactãs*	
l
lc
Csá|j}|dkrdpd}td|ƒ}titƒd6tƒd6ƒ}|j|ƒ}|dkr&d}||k}|stjd|fd||fƒitj|ƒd	6d
t	j
ƒksÖtj|ƒråtj|ƒnd
d6}di|d6}	ttj
|	ƒƒ‚nd}}n·d}||k}|sÓtjd|fd||fƒitj|ƒd	6d
t	j
ƒkstj|ƒrŸtj|ƒnd
d6}di|d6}	ttj
|	ƒƒ‚nd}}dS(Nuuni_formu	bootstrapuY
        {%% load crispy_forms_tags %%}
        {%% crispy form form_helper "%s" %%}
    uformuform_helperu
control-groupRs%(py1)s in %(py3)sR R!R"R#sassert %(py5)sR$uuniForm(R(s%(py1)s in %(py3)ssassert %(py5)s(R(s%(py1)s in %(py3)ssassert %(py5)s(R8RRRRR.R/R0R1R2R3R4R5R6R7(
R:RvRwR<R=R!R>R?R@RA((s`/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_form_helper.pyt#test_template_pack_override_verboseõs*	
 l
lcCs$tjtƒtdƒWdQXdS(NuV
            {% load crispy_forms_tags %}
            {% crispy form 'foo' %}
        (RJRKRR(((s`/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_form_helper.pyt!test_template_pack_override_wrongscCs`tdƒ}titƒd6dd6ƒ}t|_|_tjtƒ|j	|ƒWdQXdS(NuP
        {% load crispy_forms_tags %}
        {% crispy form form_helper %}
    uformuinvaliduform_helper(
RRRRXtCRISPY_FAIL_SILENTLYtTEMPLATE_DEBUGRJRKt	TypeErrorR.(R:R<R=((s`/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_form_helper.pyttest_invalid_helpers	cCsðtdƒ}tƒ}d|_d|_d|_d|_ttddƒ}|ƒ}ti|d6|d	6t	ƒd
6ƒ}|j
|ƒ}|j}d}||ƒ}	d}
|	|
k}|stj
d)|fd*|	|
fƒidtjƒksütj|ƒrtj|ƒndd6tj|
ƒd6tj|ƒd6tj|ƒd6tj|	ƒd6}d+i|d6}
ttj|
ƒƒ‚nd}}}	}}
|j}d}||ƒ}	d}
|	|
k}|stj
d,|fd-|	|
fƒidtjƒks
tj|ƒrtj|ƒndd6tj|
ƒd6tj|ƒd6tj|ƒd6tj|	ƒd6}d.i|d6}
ttj|
ƒƒ‚nd}}}	}}
d}||k}|sPtj
d/|fd0||fƒitj|ƒd6dtjƒks
tj|ƒrtj|ƒndd6}d1i|d6}ttj|ƒƒ‚nd}}d }||k}|stj
d2|fd3||fƒitj|ƒd6dtjƒksÄtj|ƒrÓtj|ƒndd6}d4i|d6}ttj|ƒƒ‚nd}}d!}||k}|s¾tj
d5|fd6||fƒitj|ƒd6dtjƒks{tj|ƒrŠtj|ƒndd6}d7i|d6}ttj|ƒƒ‚nd}}d}||k}|sutj
d8|fd9||fƒitj|ƒd6dtjƒks2tj|ƒrAtj|ƒndd6}d:i|d6}ttj|ƒƒ‚nd}}d"}||k}|s,tj
d;|fd<||fƒitj|ƒd6dtjƒksétj|ƒrøtj|ƒndd6}d=i|d6}ttj|ƒƒ‚nd}}d#}||k}|sãtj
d>|fd?||fƒitj|ƒd6dtjƒks tj|ƒr¯tj|ƒndd6}d@i|d6}ttj|ƒƒ‚nd}}d$}d}t|ƒ}	||	}||k}
|
s
tj
dA|
fdB||fƒitj|ƒd6d&tjƒksstjtƒr‚tjtƒnd&d6tj|ƒd6tj|	ƒd6dtjƒksÊtj|ƒrÙtj|ƒndd6}dCi|d6}
ttj|
ƒƒ‚nd}}}	}}
|jd'krìd(}||k}|sßtj
dD|fdE||fƒitj|ƒd6dtjƒksœtj|ƒr«tj|ƒndd6}dFi|d6}ttj|ƒƒ‚nd}}ndS(GNuZ
        {% load crispy_forms_tags %}
        {% crispy testFormSet formset_helper %}
    uthisFormsetRocksuformsets-that-rockuPOSTusimpleActiontextraiutestFormSetuformset_helperu
csrf_tokenu<formis==sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)sR!R'RNRORPR*R#sassert %(py11)sRQu/<input type='hidden' name='csrfmiddlewaretoken'uform-TOTAL_FORMSRs%(py1)s in %(py3)sR R"sassert %(py5)sR$uform-INITIAL_FORMSuform-MAX_NUM_FORMSu
method="post"uid="thisFormsetRocks"uaction="%s"s=(%(py1)s %% %(py6)s
{%(py6)s = %(py2)s(%(py4)s)
}) in %(py9)sRuuni_formuclass="uniForm(s==(sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)ssassert %(py11)s(s==(sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)ssassert %(py11)s(R(s%(py1)s in %(py3)ssassert %(py5)s(R(s%(py1)s in %(py3)ssassert %(py5)s(R(s%(py1)s in %(py3)ssassert %(py5)s(R(s%(py1)s in %(py3)ssassert %(py5)s(R(s%(py1)s in %(py3)ssassert %(py5)s(R(s%(py1)s in %(py3)ssassert %(py5)s(R(s=(%(py1)s %% %(py6)s
{%(py6)s = %(py2)s(%(py4)s)
}) in %(py9)ssassert %(py11)s(R(s%(py1)s in %(py3)ssassert %(py5)s(RRRRRSRLRTRRRRR.RWR/R0R2R3R4R1R5R6R7RR8(R:R<R;tTestFormSetttestFormSetR=R!R[R\R]R^RCR_R`R>R?R@RA((s`/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_form_helper.pyt'test_formset_with_helper_without_layouts¶							$	œ	œl
l
l
l
l
l

ÃlcCstƒ}tdƒ}titƒd6|d6tƒd6ƒ}|j|ƒ}d}||k}|søtjd|fd||fƒitj|ƒd6d	t	j
ƒksµtj|ƒrÄtj|ƒnd	d
6}di|d
6}ttj
|ƒƒ‚nd}}dS(NuP
        {% load crispy_forms_tags %}
        {% crispy form form_helper %}
    uformuform_helperu
csrf_tokenu/<input type='hidden' name='csrfmiddlewaretoken'Rs%(py1)s in %(py3)sR R!R"R#sassert %(py5)sR$(R(s%(py1)s in %(py3)ssassert %(py5)s(RRRRRR.R/R0R1R2R3R4R5R6R7(R;R<R=R!R>R?R@RA((s`/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_form_helper.pyttest_CSRF_token_POST_form=s		'lcCstƒ}d|_tdƒ}titƒd6|d6tƒd6ƒ}|j|ƒ}d}||k}|stjd|fd||fƒitj	|ƒd	6d
t
jƒks¾tj|ƒrÍtj	|ƒnd
d6}di|d6}t
tj|ƒƒ‚nd}}dS(NuGETuP
        {% load crispy_forms_tags %}
        {% crispy form form_helper %}
    uformuform_helperu
csrf_tokenu/<input type='hidden' name='csrfmiddlewaretoken'snot ins%(py1)s not in %(py3)sR R!R"R#sassert %(py5)sR$(snot in(s%(py1)s not in %(py3)ssassert %(py5)s(RRLRRRRR.R/R0R1R2R3R4R5R6R7(R;R<R=R!R>R?R@RA((s`/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_form_helper.pyttest_CSRF_token_GET_formMs			'lcCsòtƒ}tƒ}t|_t||itƒd6ƒ}d}||k}|sätjd|fd||fƒitj|ƒd6dt	j
ƒks¡tj|ƒr°tj|ƒndd6}d
i|d
6}ttj
|ƒƒ‚nd}}dS(Nu
csrf_tokenucsrfsnot ins%(py1)s not in %(py3)sR R!R"R#sassert %(py5)sR$(snot in(s%(py1)s not in %(py3)ssassert %(py5)s(RRRetdisable_csrfRRR/R0R1R2R3R4R5R6R7(RZRdR!R>R?R@RA((s`/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_form_helper.pyttest_disable_csrf[s			lc
Csêtƒ}tƒ|_tdƒ|j_t|j_t|ƒ}|j}d}||ƒ}d}||k}|s7t	j
d|fd||fƒidtjƒks´t	j
|ƒrÃt	j|ƒndd6t	j|ƒd6t	j|ƒd	6t	j|ƒd
6t	j|ƒd6}di|d6}tt	j|ƒƒ‚nd}}}}}x$dD]}	tjƒ|j|	_qTWt|ƒ}|j}d}||ƒ}d}||k}|sxt	j
d|fd||fƒidtjƒksõt	j
|ƒrt	j|ƒndd6t	j|ƒd6t	j|ƒd	6t	j|ƒd
6t	j|ƒd6}di|d6}tt	j|ƒƒ‚nd}}}}}|j}d}||ƒ}d}||k}|s†t	j
d |fd!||fƒidtjƒkst	j
|ƒrt	j|ƒndd6t	j|ƒd6t	j|ƒd	6t	j|ƒd
6t	j|ƒd6}d"i|d6}tt	j|ƒƒ‚nd}}}}}tjd#krÊ|j}d}||ƒ}d}||k}|s£t	j
d$|fd%||fƒidtjƒks t	j
|ƒr/t	j|ƒndd6t	j|ƒd6t	j|ƒd	6t	j|ƒd
6t	j|ƒd6}d&i|d6}tt	j|ƒƒ‚nd}}}}}|j}d}||ƒ}d}||k}|s±t	j
d'|fd(||fƒidtjƒks.t	j
|ƒr=t	j|ƒndd6t	j|ƒd6t	j|ƒd	6t	j|ƒd
6t	j|ƒd6}d)i|d6}tt	j|ƒƒ‚nd}}}}}n|j}d}||ƒ}d}||k}|sÂt	j
d*|fd+||fƒidtjƒks?t	j
|ƒrNt	j|ƒndd6t	j|ƒd6t	j|ƒd	6t	j|ƒd
6t	j|ƒd6}d,i|d6}tt	j|ƒƒ‚nd}}}}}|j}d}||ƒ}d}||k}|sÐt	j
d-|fd.||fƒidtjƒksMt	j
|ƒr\t	j|ƒndd6t	j|ƒd6t	j|ƒd	6t	j|ƒd
6t	j|ƒd6}d/i|d6}tt	j|ƒƒ‚nd}}}}}dS(0Nuemailu<inputis==sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)sR!R'RNRORPR*R#sassert %(py11)sRQu	password1u	password2iuhiddeniiutype="hidden" name="password1"utype="hidden" name="password2"uname="password1" type="hidden"uname="password2" type="hidden"(s==(sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)ssassert %(py11)s(u	password1u	password2(s==(sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)ssassert %(py11)s(s==(sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)ssassert %(py11)s(ii(s==(sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)ssassert %(py11)s(s==(sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)ssassert %(py11)s(s==(sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)ssassert %(py11)s(s==(sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)ssassert %(py11)s(RRRdRtlayoutRetrender_hidden_fieldsRRWR/R0R2R3R4R1R5R6R7RtHiddenInputtfieldstwidgettdjangotVERSION(
t	test_formR!R[R\R]R^RCR_R`tfield((s`/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_form_helper.pyttest_render_hidden_fieldscs 		œ
	œ	œ	œ	œ	œ	œc	CsQtƒ}tƒ|_tdƒ|j_t|j_t|ƒ}|j}d}||ƒ}d}||k}|s7t	j
d|fd||fƒidtjƒks´t	j
|ƒrÃt	j|ƒndd6t	j|ƒd6t	j|ƒd	6t	j|ƒd
6t	j|ƒd6}di|d6}tt	j|ƒƒ‚nd}}}}}dS(Nuemailu<inputis==sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)sR!R'RNRORPR*R#sassert %(py11)sRQ(s==(sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)ssassert %(py11)s(RRRdRR‡Retrender_required_fieldsRRWR/R0R2R3R4R1R5R6R7(	RŽR!R[R\R]R^RCR_R`((s`/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_form_helper.pyttest_render_required_fields~s 		œcCsètƒ}tƒ|_d|j_t|ƒ}d}||k}|sÚtjd|fd||fƒitj|ƒd6dtj	ƒks—tj
|ƒr¦tj|ƒndd6}d
i|d
6}ttj|ƒƒ‚nd}}dS(Nucustom_form_template.htmlu<h1>Special custom form</h1>Rs%(py1)s in %(py3)sR R!R"R#sassert %(py5)sR$(R(s%(py1)s in %(py3)ssassert %(py5)s(RRRdR<RR/R0R1R2R3R4R5R6R7(RZR!R>R?R@RA((s`/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_form_helper.pyttest_helper_custom_templateŠs	lc	CsTtƒ}tƒ|_tddƒ|j_d|j_t|ƒ}|j}d}||ƒ}d}||k}|s:tj	d|fd||fƒidt
jƒks·tj|ƒrÆtj
|ƒndd	6tj
|ƒd
6tj
|ƒd6tj
|ƒd6tj
|ƒd
6}di|d6}ttj|ƒƒ‚nd}}}}}dS(Nu	password1u	password2ucustom_field_template.htmlu<h1>Special custom field</h1>is==sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)sR!R'RNRORPR*R#sassert %(py11)sRQ(s==(sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)ssassert %(py11)s(RRRdRR‡tfield_templateRRWR/R0R2R3R4R1R5R6R7(	RZR!R[R\R]R^RCR_R`((s`/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_form_helper.pyt!test_helper_custom_field_template“s"		œc	CsÑtidd6dd6dd6dd6dd	6ƒ}tƒ|_ttdƒtdƒtdƒtdƒtd	ƒƒ|j_|jƒt|j_t	|ƒ}|j
}d
}||ƒ}d}||k}|s‘tjd|fd||fƒidt
jƒkstj|ƒrtj|ƒndd6tj|ƒd6tj|ƒd6tj|ƒd6tj|ƒd6}di|d6}ttj|ƒƒ‚nd}}}}}t|j_t	|ƒ}|j
}d
}||ƒ}d}||k}|s·tjd|fd||fƒidt
jƒks4tj|ƒrCtj|ƒndd6tj|ƒd6tj|ƒd6tj|ƒd6tj|ƒd6}di|d6}ttj|ƒƒ‚nd}}}}}dS(Nuinvalidemailuemailufirst_name_too_longu
first_nameulast_name_too_longu	last_nameuyesu	password1u	password2uerrori	s==sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)sR!R'RNRORPR*R#sassert %(py11)sRQi(s==(sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)ssassert %(py11)s(s==(sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)ssassert %(py11)s(RRRdRRR‡RVReRfRRWR/R0R2R3R4R1R5R6R7RX(	RZR!R[R\R]R^RCR_R`((s`/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_form_helper.pyttest_form_show_errors sL
				
	œ	œc	Cs½tidd6dd6dd6ƒ}tƒ|_ttddƒƒ|j_|jƒt|j_t	|ƒ}|j
}d}||ƒ}d}||k}|sbtjd|fd||fƒidt
jƒksßtj|ƒrîtj|ƒndd6tj|ƒd
6tj|ƒd6tj|ƒd6tj|ƒd6}di|d6}ttj|ƒƒ‚nd}}}}}ttddƒƒ|j_t|j_t	|ƒ}|j
}d}||ƒ}d}||k}|s£tjd|fd||fƒidt
jƒks tj|ƒr/tj|ƒndd6tj|ƒd
6tj|ƒd6tj|ƒd6tj|ƒd6}di|d6}ttj|ƒƒ‚nd}}}}}dS(Nuinvalidemailuemailuyesu	password1u	password2ulegenduerroris==sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)sR!R'RNRORPR*R#sassert %(py11)sRQi(s==(sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)ssassert %(py11)s(s==(sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)ssassert %(py11)s(RRRdRRR‡RVReRfRRWR/R0R2R3R4R1R5R6R7RX(	RZR!R[R\R]R^RCR_R`((s`/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_form_helper.pyttest_multifield_errors¼sD

	œ	œc	Csãtidd6dd6dd6dd6dd	6ƒ}tƒ|_ttdd
ƒtddƒtddd
ƒtdd
ƒtd	dƒƒ|j_|jƒt	|j_
t|ƒ}|j}d}||ƒ}d}||k}|s£t
jd|fd||fƒidtjƒks t
j|ƒr/t
j|ƒndd6t
j|ƒd6t
j|ƒd6t
j|ƒd6t
j|ƒd6}di|d6}tt
j|ƒƒ‚nd}}}}}t|j_
t|ƒ}|j}d}||ƒ}d}||k}|sÉt
jd|fd ||fƒidtjƒksFt
j|ƒrUt
j|ƒndd6t
j|ƒd6t
j|ƒd6t
j|ƒd6t
j|ƒd6}d!i|d6}tt
j|ƒƒ‚nd}}}}}dS("Nuinvalidemailuemailufirst_name_too_longu
first_nameulast_name_too_longu	last_nameuyesu	password1u	password2uwhateverublablaufooubaruerroris==sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)sR!R'RNRORPR*R#sassert %(py11)sRQi(s==(sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)ssassert %(py11)s(s==(sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)ssassert %(py11)s(RRRdRRRRR‡RVReRfRRWR/R0R2R3R4R1R5R6R7RX(	RZR!R[R\R]R^RCR_R`((s`/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_form_helper.pyttest_bootstrap_form_show_errorsÖsL

	œ	œcCs&tidd6ƒ}tƒ|_ttddƒtddƒtdddƒƒ}||j_|jƒt	|ƒ}d}|j
dkrd	}ntjd
||tj
ƒ}t|ƒ}d}||k}|s«tjd|fd||fƒidtjƒkstjtƒr tjtƒndd6dtjƒksHtj|ƒrWtj|ƒndd6tj|ƒd6tj|ƒd6}	di|	d6}
ttj|
ƒƒ‚nd}}}tidd6ƒ}tƒ|_||j_t|j_t	|ƒ}tjd|tj
ƒ}t|ƒ}d}||k}|stjd|fd||fƒidtjƒksztjtƒr‰tjtƒndd6dtjƒks±tj|ƒrÀtj|ƒndd6tj|ƒd6tj|ƒd6}	di|	d6}
ttj|
ƒƒ‚nd}}}dS(Nuinvalidemailuemailu
first_nameuwatu@u	last_nameuhelp-inlineu
bootstrap3u
help-blocku"<span id="error_\d_\w*" class="%s"is==s0%(py3)s
{%(py3)s = %(py0)s(%(py1)s)
} == %(py6)sR&R'tmatchesR R"R*R#sassert %(py8)sR%u'<p id="error_\d_\w*" class="help-block"(s==(s0%(py3)s
{%(py3)s = %(py0)s(%(py1)s)
} == %(py6)ssassert %(py8)s(s==(s0%(py3)s
{%(py3)s = %(py0)s(%(py1)s)
} == %(py6)ssassert %(py8)s(RRRdRRRRR‡RVRR8R(R9t	MULTILINER&R/R0R2R3R4R1R5R6R7RXterror_text_inline(R:RZR‡R!t
help_classR™R?R]RBRqt@py_format9((s`/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_form_helper.pyttest_error_text_inlineòsH
	³³cCs¦tidd6ƒ}tƒ|_t|j_t|j_tdƒ|j_|j	ƒt
|ƒ}|jdƒ}|jdƒ}||k}|sKtj
d|fd||fƒidtjƒksÑtj|ƒràtj|ƒndd6d	tjƒkstj|ƒrtj|ƒnd	d
6}di|d
6}ttj|ƒƒ‚nd}tidd6ƒ}tƒ|_t|j_t|j_tdƒ|j_|j	ƒt
|ƒ}|jdƒ}|jdƒ}||k}|sœtj
d|fd||fƒid	tjƒks"tj|ƒr1tj|ƒnd	d6dtjƒksYtj|ƒrhtj|ƒndd
6}di|d
6}ttj|ƒƒ‚nd}dS(Nuinvalidemailuemailu-<span id="hint_id_email" class="help-inline">u,<p id="error_1_id_email" class="help-block">t<s%(py0)s < %(py2)st
help_positionR'terror_positionROR#sassert %(py4)sRPu0<span id="error_1_id_email" class="help-inline">u)<p id="hint_id_email" class="help-block">(RŸ(s%(py0)s < %(py2)ssassert %(py4)s(RŸ(s%(py0)s < %(py2)ssassert %(py4)s(RRRdRXR›Rethelp_text_inlineRR‡RVRtfindR/R0R2R3R4R1R5R6R7(RZR!R R¡R[t@py_format3Rp((s`/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_form_helper.pyttest_error_and_help_inlines<
“
“c		CsŠtƒ}tƒ|_tdtdtdƒƒtddƒtddƒtdd	d
ƒƒ|j_	t
|j_t|ƒ}|j
}d}||ƒ}d}||k}|sptjd|fd||fƒidtjƒksítj|ƒrütj|ƒndd6tj|ƒd6tj|ƒd6tj|ƒd6tj|ƒd6}di|d6}ttj|ƒƒ‚nd}}}}}dS(Nu	password1u	password2uConfirmu
first_nameuMr.u	last_nameu@udatetime_fielduonusecsu<labelis==sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)sR!R'RNRORPR*R#sassert %(py11)sRQ(s==(sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)ssassert %(py11)s(RRRdRR
RRRRR‡RXtform_show_labelsRRWR/R0R2R3R4R1R5R6R7(	RZR!R[R\R]R^RCR_R`((s`/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_form_helper.pyttest_form_show_labels0s:		œcCstƒ}tƒ|_d|j_d|j_t|ƒ}d}|swditj|ƒd6}ttj	|ƒƒ‚nd}|j}d}||ƒ}d}||k}|sutjd|fd||fƒid
t
jƒksòtj|ƒrtj|ƒnd
d6tj|ƒd6tj|ƒd
6tj|ƒd6tj|ƒd6}	di|	d6}
ttj	|
ƒƒ‚nd}}}}}d|j_d|j_t|ƒ}d}|síditj|ƒd6}ttj	|ƒƒ‚nd}|j}d}||ƒ}d}||k}|sëtjd|fd||fƒid
t
jƒkshtj|ƒrwtj|ƒnd
d6tj|ƒd6tj|ƒd
6tj|ƒd6tj|ƒd6}	di|	d6}
ttj	|
ƒƒ‚nd}}}}}dS(Nucol-lg-2ucol-lg-8uù<div class="form-group"> <div class="controls col-lg-offset-2 col-lg-8"> <div id="div_id_is_company" class="checkbox"> <label for="id_is_company" class=""> <input class="checkboxinput checkbox" id="id_is_company" name="is_company" type="checkbox" />R#sassert %(py1)sR is==sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)sR!R'RNRORPR*sassert %(py11)sRQucol-sm-3ucol-sm-8uù<div class="form-group"> <div class="controls col-sm-offset-3 col-sm-8"> <div id="div_id_is_company" class="checkbox"> <label for="id_is_company" class=""> <input class="checkboxinput checkbox" id="id_is_company" name="is_company" type="checkbox" />sassert %(py1)s(s==(sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)ssassert %(py11)ssassert %(py1)s(s==(sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)ssassert %(py11)s(RRRdtlabel_classtfield_classRR/R1R5R6R7RWR0R2R3R4(RZR!R>t@py_format2R[R\R]R^RCR_R`((s`/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_form_helper.pyt test_label_class_and_field_classNsL		œ	œcCsŸtƒ}tƒ|_d|j_t|ƒ}d}||k}|sÚtjd|fd||fƒitj|ƒd6dtj	ƒks—tj
|ƒr¦tj|ƒndd6}di|d
6}ttj|ƒƒ‚nd}}d}||k}|s‘tjd|fd||fƒitj|ƒd6dtj	ƒksNtj
|ƒr]tj|ƒndd6}di|d
6}ttj|ƒƒ‚nd}}dS(Nuuni_formuform-controlsnot ins%(py1)s not in %(py3)sR R!R"R#sassert %(py5)sR$u
ctrlHolderRs%(py1)s in %(py3)s(snot in(s%(py1)s not in %(py3)ssassert %(py5)s(R(s%(py1)s in %(py3)ssassert %(py5)s(RRRdt
template_packRR/R0R1R2R3R4R5R6R7(RZR!R>R?R@RA((s`/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_form_helper.pyttest_template_packas$	l
l(Tt
__future__Rt__builtin__R2t_pytest.assertion.rewritet	assertiontrewriteR/R(RŒRtdjango.core.urlresolversRtdjango.forms.modelsRtdjango.middleware.csrfRtdjango.templateRRRJtdjango.utils.translationRRbt
compatibilityRtconftestR	R
RRtcrispy_forms.bootstrapR
RRRRtcrispy_forms.compatibilityRtcrispy_forms.helperRRtcrispy_forms.layoutRRRRRRRtcrispy_forms.utilsRt+crispy_forms.templatetags.crispy_forms_tagsRRIRMRaRhRjRlRrRsRtRuRxRyRzR~R‚RƒR„R†RR’R“R•R–R—R˜RžR¥R§R«R­(((s`/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_form_helper.pyt<module>sd(4			*			
									"