Module Expr Str Assign NameStore Str Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Str body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Num Call NameLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Num Call NameLoad SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpMult Str Num Assign NameStore Num Assign NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd SubscriptLoad NameLoad Slice Num Str BinOpMult Str NameLoad Str SubscriptLoad NameLoad Slice Num Num Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMod Str BinOpMult TupleLoad NameLoad Num Assign NameStore BinOpMod Str BinOpMult TupleLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore SubscriptLoad NameLoad Index AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index AttributeLoad NameLoad attr Assign NameStore BinOpMod NameLoad TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Dict Str NameLoad For NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareLtE NameLoad NameLoad BinOpMod Str TupleLoad NameLoad NameLoad NameLoad decorator_list For NameStore Call NameLoad AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Return Call AttributeLoad NameLoad attr BoolOpOr NameLoad Dict decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return AttributeLoad NameLoad attr decorator_list decorator_list Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Str keyword NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore ListLoad Str Str Assign NameStore Str Assign NameStore Call AttributeLoad Str attr ListLoad Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore Call NameLoad Str NameLoad NameLoad Assign NameStore Call NameLoad Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareIn BinOpMod Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareIn BinOpAdd BinOpAdd SubscriptLoad NameLoad Index Num Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore TupleLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword Str keyword Str keyword Str keyword Str keyword Str keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore TupleLoad Str Str body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Dict Str Dict Str Str Str NameLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str Num Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore Str Assign NameStore BinOpMod Str NameLoad Assign NameStore BinOpMod Str NameLoad Expr Call NameLoad Str NameLoad NameLoad Expr Call NameLoad Str NameLoad NameLoad Assign NameStore Str Expr Call NameLoad Str NameLoad BinOpMod Str NameLoad Expr Call NameLoad Str NameLoad BinOpMod Str NameLoad Assign NameStore Str Assign NameStore Str Expr Call NameLoad Str NameLoad BinOpMod Str NameLoad Expr Call NameLoad Str NameLoad BinOpMod Str NameLoad Expr Call NameLoad Str NameLoad BinOpMod Str NameLoad Expr Call NameLoad Str NameLoad BinOpMod Str NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Expr Call NameLoad Str NameLoad NameLoad Expr Call NameLoad Str NameLoad NameLoad Assign NameStore NameLoad Expr Call NameLoad Str NameLoad BinOpMod Str NameLoad Expr Call NameLoad Str NameLoad BinOpMod Str NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Expr Call NameLoad Str NameLoad BinOpMod Str NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Expr Call NameLoad Str NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str Str Str AttributeLoad NameLoad attr Dict Str Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str Str Str AttributeLoad NameLoad attr Dict Str Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str Str Str Str AttributeLoad NameLoad attr Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore BinOpAdd Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str Str AttributeLoad NameLoad attr Str attr Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore BinOpAdd BinOpAdd Str NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict Str Dict Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Str Expr Call NameLoad NameLoad NameLoad Dict Str Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Str Expr Call NameLoad NameLoad NameLoad Dict Str Str decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Str Expr Call NameLoad NameLoad NameLoad Dict Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Str Expr Call NameLoad NameLoad NameLoad Dict decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Dict decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Dict Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Str Expr Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Str Expr Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Str Expr Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Str Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list Expr Call NameLoad Str ListLoad Str Str Str Expr Call NameLoad Str ListLoad Str Str Expr Call NameLoad Str ListLoad Str Str Expr Call NameLoad Str ListLoad Str Str Expr Call NameLoad Str ListLoad Str Str Expr Call NameLoad Str ListLoad Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str AttributeLoad NameLoad attr Dict Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num NameLoad Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad For NameStore ListLoad Str Str Str body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr CompareIn NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Dict Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Dict Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad NameLoad UnaryOpNot NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If NameLoad body Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list For NameStore AttributeLoad NameLoad attr body For NameStore TupleLoad NameLoad NameLoad Str Str body Expr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str NameLoad Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Assign NameStore BinOpAdd BinOpAdd BinOpMod Str NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr Str Str NameLoad Str Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str With Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A Tests for template_helpers. N/A __author__ aiuto@google.com (Tony Aiuto) N/A hashlib N/A os N/A textwrap google.apputils basetest googleapis.codegen django_helpers googleapis.codegen template_helpers django template django_template TemplateHelpersTest N/A N/A basetest TestCase N/A N/A _TEST_DATA_DIR N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ testdata testExtractCommentPrefix N/A N/A self N/A N/A N/A N/A N/A self assertEquals    * N/A N/A template_helpers _ExtractCommentPrefix    * hello N/A N/A N/A self assertEquals    * N/A N/A template_helpers _ExtractCommentPrefix    *hello N/A N/A N/A self assertEquals // N/A N/A template_helpers _ExtractCommentPrefix // hello N/A N/A N/A self assertEquals # N/A N/A template_helpers _ExtractCommentPrefix # hello N/A N/A N/A self assertEquals   # N/A N/A template_helpers _ExtractCommentPrefix   # hello N/A testDivideIntoBlocks N/A N/A self N/A N/A N/A test 
      // block 1
      //
      // block 2a
      // block 2a

      // block 3
      //  N/A blocks N/A N/A block N/A N/A template_helpers _DivideIntoBlocks N/A N/A test split       // N/A N/A N/A N/A blocks append block N/A N/A N/A self assertEquals 3 N/A len blocks N/A N/A N/A self assertEquals 1 N/A len N/A blocks N/A 0 N/A N/A N/A self assertEquals 2 N/A len N/A blocks N/A 1 N/A N/A N/A self assertEquals 1 N/A len N/A blocks N/A 2 N/A testCommentFragment N/A N/A self N/A N/A N/A value N/A 123456789  15 N/A indent 6 N/A expected N/A N/A N/A N/A N/A value N/A 89 N/A indent  *  N/A value N/A 90 -1 N/A N/A N/A self assertEquals expected N/A N/A template_helpers java_comment_fragment value indent N/A testCommentBlockJavaDoc N/A N/A self N/A N/A N/A alphabet abcdefghijklmnopqrstuvwxyz N/A value N/A 
       * %s %s
       * %s %s %s
       *  N/A alphabet alphabet alphabet alphabet alphabet N/A expected N/A 
       * %s %s %s
       * %s %s N/A alphabet alphabet alphabet alphabet alphabet N/A N/A N/A self assertEquals expected N/A N/A template_helpers block_comment value N/A value N/A 
       // %s %s
       // %s %s %s
       //  N/A alphabet alphabet alphabet alphabet alphabet N/A expected N/A 
       // %s %s %s
       // %s %s N/A alphabet alphabet alphabet alphabet alphabet N/A N/A N/A self assertEquals expected N/A N/A template_helpers block_comment value N/A value N/A // %s %s %s %s N/A N/A alphabet 4 N/A expected N/A // %s %s %s
// %s N/A N/A alphabet 4 N/A N/A N/A self assertEquals expected N/A N/A template_helpers block_comment value N/A testCommentBlockPerLanguage N/A N/A self N/A N/A N/A text Confectis bellis quinquiens triumphavit, post devictum Scipionem quater eodem mense, sed interiectis diebus, et rursus semel post superatos Pompei liberos. N/A tmpl_tmpl N/A N/A textwrap dedent 
    {%% language %s %%}

    {%% filter block_comment %%}
    %s {{ text }}
    {%% endfilter %%}
     TestLanguage N/A N/A language N/A N/A N/A lang_defaults N/A N/A template_helpers _language_defaults N/A language N/A comment_start N/A lang_defaults N/A N/A template_helpers _COMMENT_START N/A line_width N/A lang_defaults N/A N/A template_helpers _LINE_WIDTH N/A source N/A tmpl_tmpl N/A language comment_start N/A result N/A N/A django_helpers _DjangoRenderTemplateSource source N/A text text N/A line N/A N/A result splitlines N/A N/A len_line N/A len line N/A N/A N/A self assertTrue N/A len_line line_width N/A %d should be less than %d for %s N/A len_line line_width language N/A N/A language N/A sorted N/A template_helpers _language_defaults N/A N/A N/A TestLanguage language N/A testNoblanklines N/A N/A self N/A N/A N/A N/A N/A self assertEquals a
b N/A N/A template_helpers noblanklines a
b N/A N/A N/A self assertEquals a
b N/A N/A template_helpers noblanklines a
b

 N/A N/A N/A self assertEquals a
b N/A N/A template_helpers noblanklines 
a

b
 N/A _GetContext N/A N/A self data N/A None N/A N/A N/A N/A django_template Context N/A data N/A N/A testCollapseNewLines N/A N/A self N/A N/A N/A context N/A N/A self _GetContext NodesList N/A object N/A __init__ N/A N/A self ret N/A N/A N/A N/A self _ret ret N/A render N/A N/A self unused_context N/A N/A N/A N/A self _ret N/A N/A N/A collapse_node N/A N/A template_helpers CollapsedNewLinesNode N/A NodesList ab N/A N/A N/A self assertEquals ab N/A N/A collapse_node render context N/A collapse_node N/A N/A template_helpers CollapsedNewLinesNode N/A NodesList a
b N/A N/A N/A self assertEquals a
b N/A N/A collapse_node render context N/A collapse_node N/A N/A template_helpers CollapsedNewLinesNode N/A NodesList a

b N/A N/A N/A self assertEquals a

b N/A N/A collapse_node render context N/A collapse_node N/A N/A template_helpers CollapsedNewLinesNode N/A NodesList a


b N/A N/A N/A self assertEquals a

b N/A N/A collapse_node render context N/A collapse_node N/A N/A template_helpers CollapsedNewLinesNode N/A NodesList a



b N/A N/A N/A self assertEquals a

b N/A N/A collapse_node render context N/A testDocCommentBlocks N/A N/A self N/A N/A Render N/A N/A language text block N/A N/A N/A context N/A N/A self _GetContext N/A lang_node N/A N/A template_helpers LanguageNode language N/A N/A N/A lang_node render context N/A doc_comment_node N/A N/A template_helpers DocCommentNode text text comment_type doc wrap_blocks block N/A N/A N/A doc_comment_node render context N/A N/A s1 N/A We can all agree that this comment is almost certain to be too long for a  single line due to its excessive verbosity. N/A s2 This is short and sweet. N/A text N/A N/A join N/A N/A N/A join s1 s2 N/A no_blocks N/A Render cpp text False N/A with_blocks N/A Render cpp text True N/A N/A N/A self assertNotEqual no_blocks with_blocks N/A N/A N/A self assertTrue N/A N/A  * %s s2 no_blocks N/A N/A N/A self assertTrue N/A N/A N/A N/A s1 N/A 1 s2 with_blocks N/A testWrapInComment N/A N/A self N/A N/A N/A text N/A N/A textwrap dedent     Line one.

    Line three.

    Line five.
     N/A expected N/A N/A textwrap dedent     /**
     * Line one.
     *
     * Line three.
     *
     * Line five.
     */ N/A should_wrap N/A True False N/A N/A wrapped N/A N/A template_helpers _WrapInComment text wrap_blocks should_wrap start_prefix /** continue_prefix  *  comment_end  */ begin_tag end_tag available_width 80 N/A N/A N/A self assertEquals expected wrapped N/A testDocCommmentsEol N/A N/A self N/A N/A N/A source_tmpl N/A N/A textwrap dedent     {% language java %}
    {% doc_comment XXX %}
    Sets the '<code>{{ p.wireName }}</code>' attribute.
    {% if p.deprecated %}
    @deprecated
    {% endif %}
    @param[in] value {{ p.description }}
    {% enddoc_comment %}
     N/A should_block N/A block noblock N/A N/A source N/A N/A source_tmpl replace XXX should_block N/A template N/A N/A django_template Template source N/A context N/A N/A self _GetContext N/A p N/A deprecated wireName description True foobar A description. N/A rendered N/A N/A template render context N/A expected 
/**
 * Sets the '<code>foobar</code>' attribute.
 *
 * @deprecated
 *
 * @param[in] value A description.
 */
 N/A N/A N/A self assertEquals expected rendered N/A should block is %s should_block N/A testDocComments N/A N/A self N/A N/A TryDocComment N/A N/A language input_text expected N/A N/A N/A context N/A N/A self _GetContext N/A lang_node N/A N/A template_helpers LanguageNode language N/A N/A N/A lang_node render context N/A N/A context N/A _LINE_WIDTH 50 N/A doc_comment_node N/A N/A template_helpers DocCommentNode text input_text comment_type doc N/A N/A N/A self assertEquals expected N/A N/A doc_comment_node render context N/A N/A alphabet abcdefghijklmnopqrstuvwxyz N/A value N/A %s alphabet N/A expected N/A /** %s */ alphabet N/A N/A TryDocComment java value expected N/A N/A TryDocComment php value expected N/A value Hello, World! N/A N/A TryDocComment cpp value N/A /** %s */ value N/A N/A TryDocComment csharp value N/A /// <summary>%s</summary> value N/A value 123
456 N/A expected_expansion 123 456 N/A N/A TryDocComment java value N/A /**
 * %s
 */ expected_expansion N/A N/A TryDocComment php value N/A /**
 * %s
 */ expected_expansion N/A N/A TryDocComment cpp value N/A /**
 * %s
 */ expected_expansion N/A N/A TryDocComment csharp value N/A /// <summary>%s</summary> expected_expansion N/A value N/A %s %s %s N/A alphabet alphabet alphabet N/A expected N/A /**
 * %s
 * %s
 * %s
 */ N/A alphabet alphabet alphabet N/A N/A TryDocComment java value expected N/A N/A TryDocComment php value expected N/A value alphabet N/A N/A TryDocComment csharp value N/A /// <summary>%s</summary> value N/A N/A TryDocComment cpp value N/A /** %s */ value N/A value N/A %s %s %s N/A alphabet alphabet alphabet N/A expected_expansion N/A %s
/// %s
/// %s N/A alphabet alphabet alphabet N/A N/A TryDocComment csharp value N/A /// <summary>%s</summary> expected_expansion N/A expected_expansion N/A %s
 * %s
 * %s N/A alphabet alphabet alphabet N/A N/A TryDocComment cpp value N/A /**
 * %s
 */ expected_expansion N/A testCallTemplate N/A N/A self N/A N/A N/A source abc {% call_template _call_test foo bar qux api.xxx %} def N/A template N/A N/A django_template Template source N/A rendered N/A N/A template render N/A N/A self _GetContext N/A template_dir api bar N/A self _TEST_DATA_DIR N/A xxx yyy baz N/A N/A N/A self assertEquals abc 1baz1 2yyy2 3yyy3 def rendered N/A testCallTemplateOutOfDirectory N/A N/A self N/A N/A N/A source abc {% call_template ../_out_of_dir %} def N/A template N/A N/A django_template Template source N/A rendered N/A N/A template render N/A N/A self _GetContext N/A template_dir N/A N/A N/A os path join N/A self _TEST_DATA_DIR languages N/A N/A N/A self assertEquals abc OUT OF DIR def rendered N/A testCallTemplateWithEqualsSyntax N/A N/A self N/A N/A N/A source abc {% call_template _call_test foo=bar qux=api.xxx %} def N/A template N/A N/A django_template Template source N/A rendered N/A N/A template render N/A N/A self _GetContext N/A template_dir api bar N/A self _TEST_DATA_DIR N/A xxx yyy baz N/A N/A N/A self assertEquals abc 1baz1 2yyy2 3yyy3 def rendered N/A testCallTemplateRestoreVar N/A N/A self N/A N/A N/A Make sure variable stacking happens correctly on call_template. N/A source abc {% call_template _call_test foo bar qux api.xxx %} {{foo}} N/A template N/A N/A django_template Template source N/A rendered N/A N/A template render N/A N/A self _GetContext N/A template_dir api bar foo N/A self _TEST_DATA_DIR N/A xxx yyy baz OrigFoo N/A N/A N/A self assertEquals abc 1baz1 2yyy2 3yyy3 OrigFoo rendered N/A testParamList N/A N/A self N/A N/A N/A source method({% parameter_list %}
          {% parameter %}int a{% end_parameter%}
          {% parameter %}
            {% if false %}
               The condition fails, so the entire parameter is empty.
            {% endif %}
          {% end_parameter %}
          {% parameter %}string b{% end_parameter %}
        {% end_parameter_list %}) N/A template N/A N/A django_template Template source N/A rendered N/A N/A template render N/A N/A self _GetContext N/A N/A N/A self assertEquals method(int a, string b) rendered N/A testParamEscaping N/A N/A self N/A N/A N/A source method({% parameter_list %}
        {% parameter %}JsonCppArray<string> a{% end_parameter %}
        {% end_parameter_list %}) N/A template N/A N/A django_template Template source N/A rendered N/A N/A template render N/A N/A self _GetContext N/A N/A N/A N/A self assertEquals method(JsonCppArray<string> a) rendered N/A source method({% parameter_list %}
        {% parameter %}{{ foo }} a{% end_parameter %}
        {% end_parameter_list %}) N/A template N/A N/A django_template Template source N/A rendered N/A N/A template render N/A N/A self _GetContext N/A foo JsonCppArray<string> N/A N/A N/A self assertEquals method(JsonCppArray&lt;string&gt; a) rendered N/A source N/A {% language cpp %} source N/A template N/A N/A django_template Template source N/A rendered N/A N/A template render N/A N/A self _GetContext N/A foo JsonCppArray<string> N/A N/A N/A self assertEquals method(JsonCppArray<string> a) rendered N/A source {% language cpp %}
        {% call_template _escape_test foo foo %}
     N/A template N/A N/A django_template Template source N/A rendered N/A N/A N/A N/A template render N/A N/A self _GetContext N/A template_dir foo N/A self _TEST_DATA_DIR JsonCppArray<string> strip N/A N/A N/A self assertEquals method(JsonCppArray<string> a) rendered N/A testImportWithoutManager N/A N/A self N/A N/A N/A expected import hello_world
                  import abc N/A source N/A N/A {% imports x %}
 expected 
{% endimports %} N/A template N/A N/A django_template Template source N/A rendered N/A N/A template render N/A N/A self _GetContext N/A x N/A N/A N/A N/A self assertEquals expected rendered N/A testNoEol N/A N/A self N/A N/A TryIt N/A N/A source expected ctxt N/A None N/A N/A template N/A N/A django_template Template source N/A rendered N/A N/A template render N/A N/A self _GetContext ctxt N/A N/A N/A self assertEquals expected rendered N/A N/A source N/A N/A textwrap dedent     {% noeol %}
    public{% sp %}
    get
    {{ name }}() {
    {% eol %}
      return
    {% sp %}
    {{ x }};
    {% if thing %}{% eol %}{% endif %}
    }
    {% endnoeol %} N/A expected public getFoo() {
  return foo;
} N/A N/A TryIt source expected N/A name x thing Foo foo 1 N/A source N/A N/A textwrap dedent     {% noeol %}
    First {{ name }} Later
    {% endnoeol %} N/A expected First Bob Later N/A N/A TryIt source expected N/A name Bob N/A testNoBlank N/A N/A self N/A N/A TryIt N/A N/A source expected ctxt N/A None N/A N/A template N/A N/A django_template Template source N/A rendered N/A N/A template render N/A N/A self _GetContext ctxt N/A N/A N/A self assertEquals expected rendered N/A N/A source N/A N/A textwrap dedent     {% noblank %}

    This is all going to be fine.

    Don't be alarmed.

    There are no empty lines here.

    {% endnoblank %} N/A expected This is all going to be fine.
Don't be alarmed.
There are no empty lines here.
 N/A N/A TryIt source expected N/A N/A source N/A N/A textwrap dedent     {% noblank %}
    This is all going to be fine.

    Don't be alarmed.

    There is one empty line here.

    {% eol %}


    {% endnoblank %} N/A expected This is all going to be fine.
Don't be alarmed.
There is one empty line here.

 N/A N/A TryIt source expected N/A N/A testNestedNoBlank N/A N/A self N/A N/A N/A source N/A N/A textwrap dedent     {% noblank %}
    Foo
    {% noeol %}
    Bar
    {% eol %}
    {% endnoeol %}
    {% eol %}
    {% endnoblank %}X
     N/A expected Foo
Bar

X
 N/A template N/A N/A django_template Template source N/A N/A N/A self assertEquals expected N/A N/A template render N/A N/A self _GetContext N/A N/A testNoBlankRecurse N/A N/A self N/A N/A TryIt N/A N/A source expected N/A N/A N/A ctxt N/A N/A self _GetContext N/A template_dir N/A self _TEST_DATA_DIR N/A template N/A N/A django_template Template source N/A gotten N/A N/A template render ctxt N/A N/A N/A self assertEquals expected gotten N/A N/A recurse_source N/A N/A textwrap dedent     {% noblank recurse %}
    {% call_template _eoltest %}
    {% endnoblank %}
     N/A recurse_expected |
|
X
X
 N/A N/A TryIt recurse_source recurse_expected N/A norecurse_source N/A N/A textwrap dedent     {% noblank %}
    {% call_template _eoltest %}
    {% endnoblank %}
     N/A norecurse_expected |
|


X


X
 N/A N/A TryIt norecurse_source norecurse_expected N/A recurse_source N/A N/A textwrap dedent     {% noblank recurse %}
    {% call_template _eoltest2 %}
    {% endnoblank %}
     N/A recurse_expected |
|


X
X
 N/A N/A TryIt recurse_source recurse_expected N/A norecurse_source N/A N/A textwrap dedent     {% noblank %}
    {% call_template _eoltest2 %}
    {% endnoblank %}
     N/A norecurse_expected |
|


X

X
 N/A N/A TryIt norecurse_source norecurse_expected N/A testLiteral N/A N/A self N/A N/A TryTestLiteral N/A N/A language input_text expected N/A N/A N/A context N/A N/A self _GetContext N/A foo bar pattern foo
b"a$r baz \d{4}-\d{2}-\d{2} N/A lang_node N/A N/A template_helpers LanguageNode language N/A N/A N/A lang_node render context N/A N/A context N/A _LINE_WIDTH 50 N/A node N/A N/A template_helpers LiteralStringNode input_text N/A N/A N/A self assertEquals expected N/A N/A node render context N/A N/A N/A TryTestLiteral dart N/A foo bar "foo\nb\"a\$rbaz" N/A N/A TryTestLiteral java N/A foo "foo\nb\"a$r" N/A N/A TryTestLiteral java N/A bar "baz" N/A N/A TryTestLiteral java N/A pattern "\\d{4}-\\d{2}-\\d{2}" N/A N/A TryTestLiteral objc N/A foo @"foo\nb\"a$r" N/A N/A TryTestLiteral php N/A foo bar 'foo
b"a$rbaz' N/A testCopyright N/A N/A self N/A N/A N/A copyright_text MY COPYRIGHT TEXT N/A expected_license_preamble Licensed under the Apache License N/A template N/A N/A django_template Template {% language java %}{% copyright_block %} N/A context N/A N/A self _GetContext N/A template_dir api N/A self _TEST_DATA_DIR N/A N/A text_without_copyright N/A N/A template render context N/A license_pos N/A N/A text_without_copyright find expected_license_preamble N/A N/A N/A self assertLess 3 license_pos N/A N/A N/A self assertEquals -1 N/A N/A text_without_copyright find copyright_text N/A N/A N/A context N/A api N/A copyright copyright_text N/A text_with_copyright N/A N/A template render context N/A license_pos_with_copyright N/A N/A text_with_copyright find expected_license_preamble N/A N/A N/A self assertLess license_pos license_pos_with_copyright N/A copyright_pos N/A N/A text_with_copyright find copyright_text N/A N/A N/A self assertEquals license_pos copyright_pos N/A testGetArgFromToken N/A N/A self N/A N/A N/A template N/A N/A django_template Template {% camel_case foo %} N/A context N/A N/A self _GetContext N/A foo hello_world N/A N/A N/A self assertEquals HelloWorld N/A N/A template render context N/A tag N/A language comment_if doc_comment_if N/A N/A N/A N/A template N/A N/A django_template Template N/A {%% %s %%} tag N/A N/A N/A self fail TemplateSyntaxError not raised N/A N/A N/A N/A django_template TemplateSyntaxError N/A e N/A N/A N/A N/A self assertEquals N/A tag requires a single argument: %s tag N/A str e N/A testCache N/A N/A self N/A N/A N/A loader N/A N/A template_helpers CachingTemplateLoader N/A template_dir N/A N/A N/A os path join N/A self _TEST_DATA_DIR languages N/A test_path N/A N/A N/A os path join template_dir java/1.0dev/test.tmpl N/A stable_path N/A N/A N/A os path join template_dir java/1.0/test.tmpl N/A N/A N/A loader GetTemplate test_path template_dir N/A N/A N/A loader GetTemplate stable_path template_dir N/A N/A N/A self assertTrue N/A stable_path N/A loader _cache N/A N/A N/A self assertFalse N/A test_path N/A loader _cache N/A testHalt N/A N/A self N/A N/A N/A template N/A N/A django_template Template {% halt %} N/A context N/A N/A self _GetContext N/A N/A N/A N/A self assertRaises N/A template_helpers Halt N/A template render context N/A template N/A N/A django_template Template {% if false %}{% halt %}{% endif %}OK N/A context N/A N/A self _GetContext N/A N/A N/A N/A self assertEquals OK N/A N/A template render context N/A testBool N/A N/A self N/A N/A N/A source {% bool x %}|{% bool y %} Test N/A N/A language x N/A N/A N/A ctxt N/A N/A self _GetContext N/A _LANGUAGE x y language x N/A x N/A template N/A N/A django_template Template source N/A key N/A template_helpers _BOOLEAN_LITERALS N/A vals N/A N/A N/A N/A template_helpers _language_defaults N/A language get key N/A N/A template_helpers _defaults N/A key N/A x N/A N/A vals N/A vals N/A -1 N/A expected N/A N/A | join vals N/A N/A N/A self assertEquals expected N/A N/A template render ctxt N/A N/A language N/A template_helpers _language_defaults N/A N/A value N/A True False truthy string N/A N/A N/A Test language value N/A testDivChecksum N/A N/A self N/A N/A N/A source <p>This is some test text.</p> N/A context N/A N/A self _GetContext N/A template N/A N/A django_template Template N/A N/A {% checksummed_div %}someId{% divbody %} source {% endchecksummed_div %} N/A checksum N/A N/A N/A N/A hashlib sha1 source hexdigest N/A expected N/A N/A N/A <div id="someId" checksum="%s"> checksum source </div> N/A N/A N/A self assertEquals expected N/A N/A template render context N/A testWrite N/A N/A self N/A N/A N/A N/A self name_to_content N/A MyWriter N/A N/A name content N/A N/A N/A Capture the write event. N/A N/A N/A self name_to_content N/A name content N/A N/A template N/A N/A django_template Template a{% write file1 %}foo{% endwrite %}b{% write file2 %}bar{% endwrite %} N/A context N/A N/A self _GetContext N/A N/A template_helpers FILE_WRITER file1 file2 MyWriter x y N/A N/A N/A self assertEquals ab N/A N/A template render context N/A N/A N/A self assertEquals foo N/A N/A self name_to_content N/A x N/A N/A N/A self assertEquals bar N/A N/A self name_to_content N/A y N/A N/A TemplateGlobalsTest N/A N/A basetest TestCase N/A testSetContext N/A N/A self N/A N/A N/A N/A N/A self assertIsNone N/A N/A template_helpers GetCurrentContext N/A data N/A key value N/A N/A N/A template_helpers SetCurrentContext data N/A N/A ctxt N/A N/A template_helpers GetCurrentContext N/A N/A N/A self assertIsNotNone ctxt N/A N/A N/A self assertEquals value N/A ctxt N/A key N/A N/A N/A self assertIsNone N/A N/A template_helpers GetCurrentContext N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A basetest main