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_layout_objects.cpython-27-PYTEST.pyc

ó
ûÖUê:c@s”ddlmZddlZddljjZddlm	Z	ddl
mZddlm
ZddlmZmZddlmZdd	lmZdd
l	mZmZddlmZmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#ddl$m%Z%dd
l&m'Z'm(Z(m)Z)m*Z*ddl+m,Z,d„Z-d„Z.d„Z/d„Z0d„Z1d„Z2ede3fd„ƒYƒZ4dS(iÿÿÿÿ(tunicode_literalsN(tforms(tContext(tugettext(tactivatet
deactivatei(tget_template_from_string(tonly_bootstrap(tCheckboxesTestFormtTestForm(tPrependedAppendedTexttAppendedTextt
PrependedTexttInlineRadiostTabt	TabHoldertAccordionGroupt	AccordiontAlerttInlineCheckboxestFieldWithButtonstStrictButton(t
FormHelper(tLayouttHTMLtFieldtMultiWidgetField(trender_crispy_formcCsútƒ}tƒ|_ttdddƒƒ|j_t|ƒ}d}||k}|sìtjd
|fd||fƒitj	|ƒd6dt
jƒks©tj|ƒr¸tj	|ƒndd	6}di|d6}t
tj|ƒƒ‚nd}}dS(Nuemailttemplateucustom_field_template.htmlu<h1>Special custom field</h1>tins%(py1)s in %(py3)stpy1thtmltpy3tsassert %(py5)stpy5(R(s%(py1)s in %(py3)ssassert %(py5)s(R	RthelperRRtlayoutRt
@pytest_art_call_reprcomparet	_safereprt@py_builtinstlocalst_should_repr_global_nametAssertionErrort_format_explanationtNone(t	test_formRt@py_assert0t@py_assert2t@py_format4t@py_format6((sc/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_layout_objects.pyttest_field_with_custom_templates	lcCsÍtdƒ}tƒ}tƒ|_ttddidd6idd6dd6d	d
6fƒƒ|j_ti|d6ƒ}|j|ƒ}|j	}d}||ƒ}d
}||k}|s{t
jd|fd||fƒidtj
ƒksøt
j|ƒrt
j|ƒndd6t
j|ƒd6t
j|ƒd6t
j|ƒd6t
j|ƒd6}	di|	d6}
tt
j|
ƒƒ‚nd}}}}}|j	}d}||ƒ}d
}||k}|s‰t
jd |fd!||fƒidtj
ƒkst
j|ƒrt
j|ƒndd6t
j|ƒd6t
j|ƒd6t
j|ƒd6t
j|ƒd6}	d"i|	d6}
tt
j|
ƒƒ‚nd}}}}}|j	}d}||ƒ}d
}||k}|s—t
jd#|fd$||fƒidtj
ƒkst
j|ƒr#t
j|ƒndd6t
j|ƒd6t
j|ƒd6t
j|ƒd6t
j|ƒd6}	d%i|	d6}
tt
j|
ƒƒ‚nd}}}}}|j	}d}||ƒ}d
}||k}|s¥t
jd&|fd'||fƒidtj
ƒks"t
j|ƒr1t
j|ƒndd6t
j|ƒd6t
j|ƒd6t
j|ƒd6t
j|ƒd6}	d(i|	d6}
tt
j|
ƒƒ‚nd}}}}}|j	}d}||ƒ}d
}||k}|s³t
jd)|fd*||fƒidtj
ƒks0t
j|ƒr?t
j|ƒndd6t
j|ƒd6t
j|ƒd6t
j|ƒd6t
j|ƒd6}	d+i|	d6}
tt
j|
ƒƒ‚nd}}}}}dS(,NuD
        {% load crispy_forms_tags %}
        {% crispy form %}
    udatetime_fieldtattrsutest_dateinputurelutest_timeinputuwidth: 30px;ustyleuhiddenutypeuformuclass="dateinputis==sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)sRtpy0tpy9tpy2tpy4tpy6R!sassert %(py11)stpy11urel="test_dateinput"urel="test_timeinput"ustyle="width: 30px;"u
type="hidden"(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(s==(sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)ssassert %(py11)s(RR	RR#RRR$RtrendertcountR%R&R(R)R*R'R+R,R-(RR.tcRt@py_assert1t@py_assert3t@py_assert5t@py_assert8t@py_assert7t@py_format10t@py_format12((sc/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_layout_objects.pyttest_multiwidget_field$sz		
*	œ	œ	œ	œ	œcCs¬tdƒ}tƒ}tƒ|_ttdddddƒtdƒƒ|j_ti|d6ƒ}|j|ƒ}|j	}d	}||ƒ}d
}||k}|sht
jd|fd||fƒid
tj
ƒksåt
j|ƒrôt
j|ƒnd
d6t
j|ƒd6t
j|ƒd6t
j|ƒd6t
j|ƒd6}	di|	d6}
tt
j|
ƒƒ‚nd}}}}}|j	}d}||ƒ}d
}||k}|svt
jd|fd||fƒid
tj
ƒksót
j|ƒrt
j|ƒnd
d6t
j|ƒd6t
j|ƒd6t
j|ƒd6t
j|ƒd6}	di|	d6}
tt
j|
ƒƒ‚nd}}}}}|j	}d}||ƒ}d
}||k}|s„t
jd|fd ||fƒid
tj
ƒkst
j|ƒrt
j|ƒnd
d6t
j|ƒd6t
j|ƒd6t
j|ƒd6t
j|ƒd6}	d!i|	d6}
tt
j|
ƒƒ‚nd}}}}}|j	}d}||ƒ}d
}||k}|s’t
jd"|fd#||fƒid
tj
ƒkst
j|ƒrt
j|ƒnd
d6t
j|ƒd6t
j|ƒd6t
j|ƒd6t
j|ƒd6}	d$i|	d6}
tt
j|
ƒƒ‚nd}}}}}dS(%NuI
        {% load crispy_forms_tags %}
        {% crispy test_form %}
    uemailttypeuhiddent	data_testiudatetime_fieldu	test_formudata-test="12"is==sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)sRR5R6R7R8R9R!sassert %(py11)sR:uname="email"uclass="dateinputuclass="timeinput(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(RR	RR#RRR$RR;R<R%R&R(R)R*R'R+R,R-(RR.R=RR>R?R@RARBRCRD((sc/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_layout_objects.pyttest_field_type_hiddenAsd		
	œ	œ	œ	œc
Csƒtƒ}tƒ|_ttdddƒƒ|j_t|ƒ}|jdkr_|j}d}||ƒ}d}||k}|sFt	j
d|fd||fƒid	tjƒksÃt	j
|ƒrÒt	j|ƒnd	d
6t	j|ƒd6t	j|ƒd6t	j|ƒd
6t	j|ƒd6}di|d6}	tt	j|	ƒƒ‚nd}}}}}n |jdkr|j}d}||ƒ}d}||k}|sft	j
d|fd||fƒid	tjƒksãt	j
|ƒròt	j|ƒnd	d
6t	j|ƒd6t	j|ƒd6t	j|ƒd
6t	j|ƒd6}di|d6}	tt	j|	ƒƒ‚nd}}}}}ndS(Nuemailt
wrapper_classutestingu	bootstrapuclass="control-group testing"is==sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)sRR5R6R7R8R9R!sassert %(py11)sR:u
bootstrap3uclass="form-group testing"(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	RR#RRR$RtCRISPY_TEMPLATE_PACKR<R%R&R(R)R*R'R+R,R-(
tsettingstformRR>R?R@RARBRCRD((sc/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_layout_objects.pyttest_field_wrapper_classZs4		œ	œc
Cs‹tƒ}tƒ|_ttdƒƒ|j_t|ƒ}|jdkrY|j}d}||ƒ}d}||k}|s@t	j
d|fd||fƒidtjƒks½t	j
|ƒrÌt	j|ƒndd6t	j|ƒd	6t	j|ƒd
6t	j|ƒd6t	j|ƒd6}di|d6}	tt	j|	ƒƒ‚nd}}}}}n.|jdkry|j}d}||ƒ}d}||k}|s`t	j
d|fd||fƒidtjƒksÝt	j
|ƒrìt	j|ƒndd6t	j|ƒd	6t	j|ƒd
6t	j|ƒd6t	j|ƒd6}di|d6}	tt	j|	ƒƒ‚nd}}}}}n|j}d}||ƒ}d}||k}|sqt	j
d|fd||fƒidtjƒksît	j
|ƒrýt	j|ƒndd6t	j|ƒd	6t	j|ƒd
6t	j|ƒd6t	j|ƒd6}di|d6}	tt	j|	ƒƒ‚nd}}}}}dS(Nuz
            if (a==b){
                // some comment
                a+1;
                foo();
            }
        uuni_formu
is==sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)sRR5R6R7R8R9R!sassert %(py11)sR:u	bootstrapii(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	RR#RRR$RRJR<R%R&R(R)R*R'R+R,R-(
RKR.RR>R?R@RARBRCRD((sc/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_layout_objects.pyttest_html_with_carriage_returnsfsL		œ	œ	œcCstdƒtƒ}tƒ|_tttdƒƒƒ|j_t|ƒ}d}||k}|söt	j
d|fd
||fƒit	j|ƒd6dtj
ƒks³t	j|ƒrÂt	j|ƒndd6}di|d6}tt	j|ƒƒ‚nd}}tƒdS(NuesuEnter a valid value.uIntroduzca un valor correctoRs%(py1)s in %(py3)sRRR R!sassert %(py5)sR"(R(s%(py1)s in %(py3)ssassert %(py5)s(RR	RR#RRt_R$RR%R&R'R(R)R*R+R,R-R(RLRR/R0R1R2((sc/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_layout_objects.pyt	test_i18n|s
	l
tTestBootstrapLayoutObjectscBs}eZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
d„ZRS(
c	Csdtjfd„ƒY}dtjfd„ƒY}tƒ}|ƒ|jd_tƒ|_tdƒ|j_	t
|ƒ}d}||k}|s%tjd|fd||fƒitj
|ƒd	6d
tjƒksâtj|ƒrñtj
|ƒnd
d6}di|d6}ttj|ƒƒ‚nd}}|ƒ|jd_tdƒ|j_	t
|ƒ}d}||k}|s
tjd|fd||fƒitj
|ƒd	6d
tjƒksÊtj|ƒrÙtj
|ƒnd
d6}di|d6}ttj|ƒƒ‚nd}}dS(NtCustomRadioSelectcBseZRS((t__name__t
__module__(((sc/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_layout_objects.pyRRŒstCustomCheckboxSelectMultiplecBseZRS((RSRT(((sc/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_layout_objects.pyRUsu
inline_radiosu
class="radio"Rs%(py1)s in %(py3)sRRR R!sassert %(py5)sR"u
checkboxesuclass="checkbox"(R(s%(py1)s in %(py3)ssassert %(py5)s(R(s%(py1)s in %(py3)ssassert %(py5)s(RtRadioSelecttC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d6}	d2i|	d6}
ttj|
ƒƒ‚nd}}}}}|j
}d}||ƒ}d
}||k}|sÒtjd3|fd4||fƒid
t
jƒksOtj|ƒr^tj|ƒnd
d6tj|ƒd6tj|ƒd6tj|ƒd6tj|ƒd6}	d5i|	d6}
ttj|
ƒƒ‚nd}}}}}ndS(6Nuemailu@u	gmail.comu	password1u#u	password2u$u	bootstrapu<span class="add-on">@</span>is==sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)sRR5R6R7R8R9R!sassert %(py11)sR:u%<span class="add-on">gmail.com</span>u<span class="add-on">#</span>u<span class="add-on">$</span>u
bootstrap3u(<span class="input-group-addon">@</span>u0<span class="input-group-addon">gmail.com</span>u(<span class="input-group-addon">#</span>u(<span class="input-group-addon">$</span>(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(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	RR#RR
RRR$RRJR<R%R&R(R)R*R'R+R,R-(RZRKR.RR>R?R@RARBRCRD((sc/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_layout_objects.pyttest_prepended_appended_text¡s²		œ	œ	œ	œ	œ	œ	œ	œcCs}tƒ}tƒ|_ttdƒƒ|j_t|ƒ}|jdkrY|j}d}||ƒ}d}||k}|s@t	j
d|fd||fƒidtjƒks½t	j
|ƒrÌt	j|ƒndd6t	j|ƒd	6t	j|ƒd
6t	j|ƒd6t	j|ƒd6}	di|	d6}
tt	j|
ƒƒ‚nd}}}}}n |jdkry|j}d}||ƒ}d}||k}|s`t	j
d|fd||fƒidtjƒksÝt	j
|ƒrìt	j|ƒndd6t	j|ƒd	6t	j|ƒd
6t	j|ƒd6t	j|ƒd6}	di|	d6}
tt	j|
ƒƒ‚nd}}}}}ndS(Nu
inline_radiosu	bootstrapu
radio inline"is==sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)sRR5R6R7R8R9R!sassert %(py11)sR:u
bootstrap3u
radio-inline"(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(RRR#RR
R$RRJR<R%R&R(R)R*R'R+R,R-(RZRKR.RR>R?R@RARBRCRD((sc/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_layout_objects.pyttest_inline_radios¸s6		œ	œcCstƒ}tƒ|_tttddƒtdddƒƒƒ|j_t|ƒ}|jdkr|j	}d}||ƒ}d}||k}|sXt
jd|fd ||fƒidtj
ƒksÕt
j|ƒrät
j|ƒndd6t
j|ƒd
6t
j|ƒd6t
j|ƒd6t
j|ƒd6}	d!i|	d6}
tt
j|
ƒƒ‚nd}}}}}|j	}d}||ƒ}d}||k}|sft
jd"|fd#||fƒidtj
ƒksã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:|fd;||fƒidtj
ƒksV
t
j|ƒre
t
j|ƒndd6t
j|ƒd
6t
j|ƒd6t
j|ƒd6t
j|ƒd6}	d<i|	d6}
tt
j|
ƒƒ‚nd}}}}}|j	}d}||ƒ}d}||k}|sçt
jd=|fd>||fƒidtj
ƒksdt
j|ƒrst
j|ƒndd6t
j|ƒd
6t
j|ƒd6t
j|ƒd6t
j|ƒd6}	d?i|	d6}
tt
j|
ƒƒ‚nd}}}}}dS(@Nuoneu
first_nameutwou	password1u	password2u	bootstrapu<div class="accordion"is==sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)sRR5R6R7R8R9R!sassert %(py11)sR:u<div class="accordion-group">iu<div class="accordion-heading">u <div class="panel panel-default"u<div class="panel-group"u<div class="panel-heading">u
<div id="one"u
<div id="two"uname="first_name"uname="password1"uname="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(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(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(s==(sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)ssassert %(py11)s(R	RR#RRRR$RRJR<R%R&R(R)R*R'R+R,R-(RZRKR.RR>R?R@RARBRCRD((sc/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_layout_objects.pyt!test_accordion_and_accordiongroupÅsö		œ	œ	œ	œ	œ	œ	œ	œ	œ	œ	œc
Cs=tƒ}tƒ|_tttddƒƒƒ|j_t|ƒ}|jdkrZd}nd}|j	}d}||}||ƒ}d}	||	k}
|
s™t
jd|
fd||	fƒit
j|ƒd
6dt
jƒksït
j|ƒrþt
j|ƒndd6t
j|ƒd
6t
j|	ƒd6t
j|ƒd6dt
jƒksVt
j|ƒret
j|ƒndd6}di|d6}tt
j|ƒƒ‚nd}}}}}
}	tttdddtƒƒƒ|j_t|ƒ}|j	}d}||}||ƒ}d}	||	k}
|
st
jd|
fd||	fƒit
j|ƒd
6dt
jƒksut
j|ƒr„t
j|ƒndd6t
j|ƒd
6t
j|	ƒd6t
j|ƒd6dt
jƒksÜt
j|ƒrët
j|ƒndd6}di|d6}tt
j|ƒƒ‚nd}}}}}
}	dS(Nuoneu
first_nameu	bootstrapuaccordion-bodyupanel-collapseu$<div id="one" class="%s collapse in"is==sY%(py8)s
{%(py8)s = %(py2)s
{%(py2)s = %(py0)s.count
}((%(py4)s %% %(py5)s))
} == %(py11)stpy8RR5R7R:R8taccordion_classR"R!sassert %(py13)stpy13tactivei(s==(sY%(py8)s
{%(py8)s = %(py2)s
{%(py2)s = %(py0)s.count
}((%(py4)s %% %(py5)s))
} == %(py11)ssassert %(py13)s(s==(sY%(py8)s
{%(py8)s = %(py2)s
{%(py2)s = %(py0)s.count
}((%(py4)s %% %(py5)s))
} == %(py11)ssassert %(py13)s(R	RR#RRRR$RRJR<R%R&R'R(R)R*R+R,R-tFalse(
RZRKR.RR`R>R?t@py_assert6RBt@py_assert10t@py_assert9RDt@py_format14((sc/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_layout_objects.pyt(test_accordion_active_false_not_renderedæsP			
Ó	
Óc
Csjtƒ}tƒ|_ttddƒƒ|j_t|ƒ}|j}d}||ƒ}d}||k}|s4tj	d|fd||fƒidt
jƒks±tj|ƒrÀtj
|ƒndd6tj
|ƒd	6tj
|ƒd
6tj
|ƒd6tj
|ƒd6}di|d6}	ttj|	ƒƒ‚nd}}}}}|j}d}||ƒ}d}||k}|sBtj	d|fd||fƒidt
jƒks¿tj|ƒrÎtj
|ƒndd6tj
|ƒd	6tj
|ƒd
6tj
|ƒd6tj
|ƒd6}di|d6}	ttj|	ƒƒ‚nd}}}}}|j}d}||ƒ}d}||k}|sPtj	d|fd||fƒidt
jƒksÍtj|ƒrÜtj
|ƒndd6tj
|ƒd	6tj
|ƒd
6tj
|ƒd6tj
|ƒd6}di|d6}	ttj|	ƒƒ‚nd}}}}}dS(Ntcontentu
Testing...u<div class="alert"is==sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)sRR5R6R7R8R9R!sassert %(py11)sR:u#<button type="button" class="close"(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	RR#RRR$RR<R%R&R(R)R*R'R+R,R-(
RZR.RR>R?R@RARBRCRD((sc/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_layout_objects.pyt
test_alertsF		œ	œ	œc
Csbtƒ}tƒ|_ttdddtƒƒ|j_t|ƒ}|j}d}||ƒ}d}||k}|s:t	j
d|fd||fƒidtjƒks·t	j
|ƒrÆt	j|ƒndd	6t	j|ƒd
6t	j|ƒd6t	j|ƒd6t	j|ƒd
6}di|d6}	tt	j|	ƒƒ‚nd}}}}}|j}d}||ƒ}d}||k}|sHt	j
d|fd||fƒidtjƒksÅt	j
|ƒrÔt	j|ƒndd	6t	j|ƒd
6t	j|ƒd6t	j|ƒd6t	j|ƒd
6}di|d6}	tt	j|	ƒƒ‚nd}}}}}dS(NRiu
Testing...tblocku<div class="alert alert-block"is==sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)sRR5R6R7R8R9R!sassert %(py11)sR:(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	RR#RRtTrueR$RR<R%R&R(R)R*R'R+R,R-(
RZR.RR>R?R@RARBRCRD((sc/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_layout_objects.pyttest_alert_blocks2		œ	œc
	Csß	tƒ}tƒ|_tttddddddƒtddd	ƒƒƒ|j_t|ƒ}|j}d
}||ƒ}d}||k}|sUt	j
d!|fd"||fƒidtjƒksÒt	j
|ƒrát	j|ƒndd6t	j|ƒd6t	j|ƒd6t	j|ƒd6t	j|ƒd6}d#i|d6}	tt	j|	ƒƒ‚nd}}}}}|j}d}||ƒ}d}||k}|sct	j
d$|fd%||fƒidtjƒksàt	j
|ƒrït	j|ƒndd6t	j|ƒd6t	j|ƒd6t	j|ƒd6t	j|ƒd6}d&i|d6}	tt	j|	ƒƒ‚nd}}}}}|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sRR5R6R7R8R9R!sassert %(py11)sR:u'class="tab-pane first-tab-class active"u<li class="tab-paneiutab-paneiu<div id="custom-name"u
<div id="two"uname="first_name"uname="password1"uname="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(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(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	RR#RRRR$RR<R%R&R(R)R*R'R+R,R-(
RZR.RR>R?R@RARBRCRD((sc/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_layout_objects.pyttest_tab_and_tab_holder"sÐ		œ	œ	œ	œ	œ	œ	œ	œ	œcCs“dtjfd„ƒY}|ƒ}t|ƒ}|ƒ}t|ƒ}|j}d}||ƒ}d}||k}|s;tjd|fd||fƒidtjƒks¸tj|ƒrÇtj	|ƒndd6tj	|ƒd	6tj	|ƒd
6tj	|ƒd6tj	|ƒd6}	di|	d6}
t
tj|
ƒƒ‚nd}}}}}|didd6ƒ}t|ƒ}|j}d}||ƒ}d}||k}|sktjd|fd||fƒidtjƒksètj|ƒr÷tj	|ƒndd6tj	|ƒd	6tj	|ƒd
6tj	|ƒd6tj	|ƒd6}	di|	d6}
t
tj|
ƒƒ‚nd}}}}}|j}d}||ƒ}d}||k}|sytjd|fd||fƒidtjƒksötj|ƒrtj	|ƒndd6tj	|ƒd	6tj	|ƒd
6tj	|ƒd6tj	|ƒd6}	di|	d6}
t
tj|
ƒƒ‚nd}}}}}dS(NR	cBs_eZejdeƒZejdeƒZeƒZ	e
eeddƒeddƒƒƒe	_
RS(trequireduoneuval1utwouval2(RSRTRt	CharFieldRctval1Rltval2RR#RRRR$(((sc/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_layout_objects.pyR	Fs	uclass="tab-pane active active"is==sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)sRR5R6R7R8R9R!sassert %(py11)sR:tdataufoouval1u)<div id="one" 
    class="tab-pane activeu)<div id="two" 
    class="tab-pane activei(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(
RtFormRR<R%R&R(R)R*R'R+R,R-(RZR	R.RR>R?R@RARBRCRD((sc/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_layout_objects.pyttest_tab_helper_reuseBsJ			œ	œ	œcCs»tƒ}idd6|jdj_idd6|jdj_t|ƒ}d}||k}|sötjd|fd||fƒitj|ƒd	6d
tj	ƒks³tj
|ƒrÂtj|ƒnd
d6}di|d6}ttj|ƒƒ‚nd}}d}||k}|s­tjd|fd||fƒitj|ƒd	6d
tj	ƒksjtj
|ƒrytj|ƒnd
d6}di|d6}ttj|ƒƒ‚nd}}dS(Nufirstuclassu
inline_radiosusecondu
checkboxesu
class="first"Rs%(py1)s in %(py3)sRRR R!sassert %(py5)sR"uclass="second"(R(s%(py1)s in %(py3)ssassert %(py5)s(R(s%(py1)s in %(py3)ssassert %(py5)s(RRXRYR4RR%R&R'R(R)R*R+R,R-(RZRLRR/R0R1R2((sc/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_layout_objects.pyttest_radio_attrscs$	l
lc
CsËtƒ}tƒ|_tttdddƒtdddƒtdddƒtd	d
ddd
ddƒddddƒƒ|j_t|ƒ}d}|j	dkr¨d}n|j
}d}||}||ƒ}d}	||	k}
|
sátjd4|
fd5||	fƒitj
|ƒd6dtjƒks7tj|ƒrFtj
|ƒndd6tj
|ƒd6tj
|	ƒd6tj
|ƒd6dtjƒksžtj|ƒr­tj
|ƒndd 6}d6i|d#6}ttj|ƒƒ‚nd}}}}}
}	|j
}d$}||ƒ}
d}|
|k}|sótjd7|fd8|
|fƒidtjƒksptj|ƒrtj
|ƒndd6tj
|ƒd&6tj
|ƒd6tj
|ƒd6tj
|
ƒd'6}d9i|d6}ttj|ƒƒ‚nd}}}
}}|j
}d)}||ƒ}
d}|
|k}|stjd:|fd;|
|fƒidtjƒks~tj|ƒrtj
|ƒndd6tj
|ƒd&6tj
|ƒd6tj
|ƒd6tj
|
ƒd'6}d<i|d6}ttj|ƒƒ‚nd}}}
}}|j
}d*}||ƒ}
d}|
|k}|stjd=|fd>|
|fƒidtjƒksŒtj|ƒr›tj
|ƒndd6tj
|ƒd&6tj
|ƒd6tj
|ƒd6tj
|
ƒd'6}d?i|d6}ttj|ƒƒ‚nd}}}
}}|j
}d}||ƒ}
d}|
|k}|stjd@|fdA|
|fƒidtjƒksštj|ƒr©tj
|ƒndd6tj
|ƒd&6tj
|ƒd6tj
|ƒ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idtjƒks+tj|ƒr:tj
|ƒndd6tj
|ƒd&6tj
|ƒd6tj
|ƒd6tj
|
ƒd'6}dZi|d6}ttj|ƒƒ‚nd}}}
}}ndS([Nu	password1Rouspan4uGo!Rnu	go-buttonuNo!uextrauTestRFusubmittnameuwhatevertvalueu	somethingtautocompleteuoffu
control-groupu
bootstrap3u
form-groupuclass="%s extra"is==sY%(py8)s
{%(py8)s = %(py2)s
{%(py2)s = %(py0)s.count
}((%(py4)s %% %(py5)s))
} == %(py11)sR_RR5R7R:R8tform_group_classR"R!sassert %(py13)sRauautocomplete="off"sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)sR6R9sassert %(py11)suclass="span4uid="go-button"uclass="btn"iuclass="btn extra"u
type="submit"uname="whatever"uvalue="something"u	bootstrapuclass="input-append"uclass="input-group-btn(s==(sY%(py8)s
{%(py8)s = %(py2)s
{%(py2)s = %(py0)s.count
}((%(py4)s %% %(py5)s))
} == %(py11)ssassert %(py13)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(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(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(s==(sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)ssassert %(py11)s(R	RR#RRRRR$RRJR<R%R&R'R(R)R*R+R,R-(RZRKRLRR|R>R?RdRBReRfRDRgR@RARC((sc/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_layout_objects.pyttest_field_with_buttonsks&			
Ó	œ	œ	œ	œ	œ	œ	œ	œ	œ	œ	œ	œcCs¾tƒ}x'|jD]}tjƒ|j|_qWtƒ|_ttddƒt	ddƒt
ddƒtdƒtdƒƒ|j_
t|ƒ}|j}d}||ƒ}d	}||k}|sˆtjd|fd||fƒidtjƒkstj|ƒrtj|ƒndd
6tj|ƒd6tj|ƒd6tj|ƒd6tj|ƒd6}	di|	d6}
ttj|
ƒƒ‚nd}}}}}|j}d}||ƒ}d	}||k}|s–tjd|fd||fƒidtjƒkstj|ƒr"tj|ƒndd
6tj|ƒd6tj|ƒd6tj|ƒd6tj|ƒd6}	di|	d6}
ttj|
ƒƒ‚nd}}}}}|j}d}||ƒ}d}||k}|s¤tjd|fd||fƒidtjƒks!tj|ƒr0tj|ƒndd
6tj|ƒd6tj|ƒd6tj|ƒd6tj|ƒd6}	d i|	d6}
ttj|
ƒƒ‚nd}}}}}dS(!Nu	password1ufoou	password2ubaruemailu
first_nameu	last_nameu<inputis==sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)sRR5R6R7R8R9R!sassert %(py11)sR:u
type="hidden"u<labeli(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	RXRtHiddenInputRYRR#RRRR
RR
R$RR<R%R&R(R)R*R'R+R,R-(RZRLtfieldRR>R?R@RARBRCRD((sc/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_layout_objects.pyttest_hidden_fieldssR			œ	œ	œcCs¸tƒ}t|ƒ}|j}d}||ƒ}d}||k}|s
tjd|fd||fƒidtjƒksŠtj|ƒr™tj|ƒndd6tj|ƒd6tj|ƒd6tj|ƒd	6tj|ƒd
6}	di|	d
6}
t	tj
|
ƒƒ‚nd}}}}}t|ƒ|_
|j
djtdtƒt|ƒ}|jdkr†|j}d}||ƒ}d}||k}|s_tjd|fd||fƒidtjƒksÜtj|ƒrëtj|ƒndd6tj|ƒd6tj|ƒd6tj|ƒd	6tj|ƒd
6}	di|	d
6}
t	tj
|
ƒƒ‚nd}}}}}|j}d}||ƒ}d}||k}|smtjd|fd||fƒidtjƒksêtj|ƒrùtj|ƒndd6tj|ƒd6tj|ƒd6tj|ƒd	6tj|ƒd
6}	d i|	d
6}
t	tj
|
ƒƒ‚nd}}}}}n.|jdkr´|j}d}||ƒ}d}||k}|stjd!|fd"||fƒidtjƒks
tj|ƒrtj|ƒndd6tj|ƒd6tj|ƒd6tj|ƒd	6tj|ƒd
6}	d#i|	d
6}
t	tj
|
ƒƒ‚nd}}}}}|j}d}||ƒ}d}||k}|s›tjd$|fd%||fƒidtjƒkstj|ƒr'tj|ƒndd6tj|ƒd6tj|ƒd6tj|ƒd	6tj|ƒd
6}	d&i|	d
6}
t	tj
|
ƒƒ‚nd}}}}}ndS('Nuchecked="checked"is==sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)sRR5R6R7R8R9R!sassert %(py11)sR:itinlineu	bootstrapucheckbox inline"iuinline"u
bootstrap3ucheckbox-inline"u
inline="True"i(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(s==(sK%(py6)s
{%(py6)s = %(py2)s
{%(py2)s = %(py0)s.count
}(%(py4)s)
} == %(py9)ssassert %(py11)s(RRR<R%R&R(R)R*R'R+R,R-RR#twrapRRlRJ(RZRKR.RR>R?R@RARBRCRD((sc/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_layout_objects.pyttest_multiplecheckboxes¢sr		œ	œ	œ	œ	œ(RSRTR[R\R]R^RhRjRmRpRwRxR}R€Rƒ(((sc/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_layout_objects.pyRQˆs			
	!	%			 	!		$	(5t
__future__Rt__builtin__R(t_pytest.assertion.rewritet	assertiontrewriteR%tdjangoRtdjango.templateRtdjango.utils.translationRRORRt
compatibilityRtconftestRRR	tcrispy_forms.bootstrapR
RRR
RRRRRRRRtcrispy_forms.helperRtcrispy_forms.layoutRRRRtcrispy_forms.utilsRR3RERHRMRNRPtobjectRQ(((sc/Users/carlton/Documents/Django-Stack/django-crispy-forms/crispy_forms/tests/test_layout_objects.pyt<module>s*R"