ok

Mini Shell

Direktori : /proc/self/root/proc/self/root/usr/lib/python2.7/site-packages/jinja2/testsuite/
Upload File :
Current File : //proc/self/root/proc/self/root/usr/lib/python2.7/site-packages/jinja2/testsuite/debug.pyc

�
,��Qc@spdZddlZddlmZmZddlmZmZede�Zdefd��YZ	d�Z
dS(	s�
    jinja2.testsuite.debug
    ~~~~~~~~~~~~~~~~~~~~~~

    Tests the debug system.

    :copyright: (c) 2010 by the Jinja Team.
    :license: BSD, see LICENSE for more details.
i����N(t
JinjaTestCasetfilesystem_loader(tEnvironmenttTemplateSyntaxErrortloadert
DebugTestCasecBs#eZd�Zd�Zd�ZRS(cs2�fd�}tjd��|j|d�dS(Ncs�jdd��dS(NtfailcSsddS(Nii((((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/debug.pyt<lambda>s(trender((ttmpl(s:/usr/lib/python2.7/site-packages/jinja2/testsuite/debug.pyttestssbroken.htmls�
  File ".*?broken.html", line 2, in (top-level template code|<module>)
    \{\{ fail\(\) \}\}
  File ".*?debug.pyc?", line \d+, in <lambda>
    tmpl\.render\(fail=lambda: 1 / 0\)
ZeroDivisionError: (int(eger)? )?division (or modulo )?by zero
(tenvtget_templatetassert_traceback_matches(tselfR
((R	s:/usr/lib/python2.7/site-packages/jinja2/testsuite/debug.pyttest_runtime_errors	cCs|jd�d�dS(NcSs
tjd�S(Nssyntaxerror.html(RR(((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/debug.pyR'ss(?sm)
  File ".*?syntaxerror.html", line 4, in (template|<module>)
    \{% endif %\}.*?
(jinja2\.exceptions\.)?TemplateSyntaxError: Encountered unknown tag 'endif'. Jinja was looking for the following tags: 'endfor' or 'else'. The innermost block that needs to be closed is 'for'.
    (R
(R((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/debug.pyttest_syntax_error"scCsd�}|j|d�dS(NcSstdd��dS(Ntwtfi*(R(((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/debug.pyR
.ss�
  File ".*debug.pyc?", line \d+, in test
    raise TemplateSyntaxError\('wtf', 42\)
(jinja2\.exceptions\.)?TemplateSyntaxError: wtf
  line 42(R
(RR
((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/debug.pyttest_regular_syntax_error-s		(t__name__t
__module__RRR(((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/debug.pyRs		cCs&tj�}|jtjt��|S(N(tunittestt	TestSuitetaddTestt	makeSuiteR(tsuite((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/debug.pyR7s(t__doc__Rtjinja2.testsuiteRRtjinja2RRRRR(((s:/usr/lib/python2.7/site-packages/jinja2/testsuite/debug.pyt<module>
s#

Zerion Mini Shell 1.0