ok
Direktori : /proc/thread-self/root/proc/self/root/usr/lib/python2.7/site-packages/jinja2/testsuite/ |
Current File : //proc/thread-self/root/proc/self/root/usr/lib/python2.7/site-packages/jinja2/testsuite/loader.pyo |
� ,��Qc @ s� d Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l m Z m Z m Z m Z m Z m Z m Z d d l m Z m Z d d l m Z m Z d d l m Z d d l m Z d e f d � � YZ d e f d � � YZ d � Z d S( s� jinja2.testsuite.loader ~~~~~~~~~~~~~~~~~~~~~~~ Test the loaders. :copyright: (c) 2010 by the Jinja Team. :license: BSD, see LICENSE for more details. i����N( t JinjaTestCaset dict_loadert package_loadert filesystem_loadert function_loadert choice_loadert prefix_loader( t Environmentt loaders( t PYPYt PY2( t split_template_path( t TemplateNotFoundt LoaderTestCasec B sY e Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( c C s8 t d t � } | j d � } | j t | j d � d S( Nt loaders justdict.htmls missing.html( R R t get_templatet assert_raisesR ( t selft envt tmpl( ( s; /usr/lib/python2.7/site-packages/jinja2/testsuite/loader.pyt test_dict_loader s c C s8 t d t � } | j d � } | j t | j d � d S( NR s test.htmls missing.html( R R R R R ( R R R ( ( s; /usr/lib/python2.7/site-packages/jinja2/testsuite/loader.pyt test_package_loader# s c C sG t d t � } | j d � } | j d � } | j t | j d � d S( NR s test.htmls foo/test.htmls missing.html( R R R R R ( R R R ( ( s; /usr/lib/python2.7/site-packages/jinja2/testsuite/loader.pyt test_filesystem_loader) s c C sG t d t � } | j d � } | j d � } | j t | j d � d S( NR s justdict.htmls test.htmls missing.html( R R R R R ( R R R ( ( s; /usr/lib/python2.7/site-packages/jinja2/testsuite/loader.pyt test_choice_loader1 s c C s8 t d t � } | j d � } | j t | j d � d S( NR s justfunction.htmls missing.html( R R R R R ( R R R ( ( s; /usr/lib/python2.7/site-packages/jinja2/testsuite/loader.pyt test_function_loader9 s c C sG t d t � } | j d � } | j d � } | j t | j d � d S( NR s a/test.htmls b/justdict.htmlt missing( R R R R R ( R R R ( ( s; /usr/lib/python2.7/site-packages/jinja2/testsuite/loader.pyt test_prefix_loader? s c s� t � d t j f � f d � � Y} t d | � d d � } | j d � } t � t � t d | � d d � } t d | � d d � } | j d � } | j d � } | j d � } d S( Nt TestLoaderc s e Z � f d � Z RS( c s d d � f d � f S( Nu fooc s � S( N( ( ( t changed( s; /usr/lib/python2.7/site-packages/jinja2/testsuite/loader.pyt <lambda>K s ( t None( R t environmentt template( R ( s; /usr/lib/python2.7/site-packages/jinja2/testsuite/loader.pyt get_sourceJ s ( t __name__t __module__R! ( ( R ( s; /usr/lib/python2.7/site-packages/jinja2/testsuite/loader.pyR I s R t cache_sizei����R i i t onet twot three( t FalseR t BaseLoaderR R t True( R R R R t t1t t2t t3( ( R s; /usr/lib/python2.7/site-packages/jinja2/testsuite/loader.pyt test_cachingG s c C s3 i d d 6} t d t j | � � } d | d <d S( NR% t fooR R&