Module Expr Str ImportFrom alias alias alias alias alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Dict Str Str Assign NameStore Call NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list Expr Call NameLoad Str Str Expr Call NameLoad Str Str Expr Call NameLoad Str Str Expr Call NameLoad Str Str Expr Call NameLoad Str Str Expr Call NameLoad Str Str Expr Call NameLoad Str Str Assign NameStore Call NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Dict Str Dict Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad Str attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad Str attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad Str attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad Str attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad Str attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad Str attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad Str attr NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad Str attr NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str decorator_list decorator_list
N/A N/A 
Testing some internals of the template processing. These are *not* examples to be copied in user code.
 django.template TokenParser FilterExpression Parser Variable TemplateSyntaxError django.utils.unittest TestCase ParserTests N/A TestCase N/A test_token_parsing N/A N/A self N/A N/A N/A p N/A TokenParser tag thevar|filter sometag N/A N/A N/A self assertEqual N/A p tagname tag N/A N/A N/A self assertEqual N/A N/A p value thevar|filter N/A N/A N/A self assertTrue N/A N/A p more N/A N/A N/A self assertEqual N/A N/A p tag sometag N/A N/A N/A self assertFalse N/A N/A p more N/A p N/A TokenParser tag "a value"|filter sometag N/A N/A N/A self assertEqual N/A p tagname tag N/A N/A N/A self assertEqual N/A N/A p value "a value"|filter N/A N/A N/A self assertTrue N/A N/A p more N/A N/A N/A self assertEqual N/A N/A p tag sometag N/A N/A N/A self assertFalse N/A N/A p more N/A p N/A TokenParser tag 'a value'|filter sometag N/A N/A N/A self assertEqual N/A p tagname tag N/A N/A N/A self assertEqual N/A N/A p value 'a value'|filter N/A N/A N/A self assertTrue N/A N/A p more N/A N/A N/A self assertEqual N/A N/A p tag sometag N/A N/A N/A self assertFalse N/A N/A p more N/A test_filter_parsing N/A N/A self N/A N/A N/A c N/A article N/A section News N/A p N/A Parser fe_test N/A N/A s val N/A N/A N/A N/A N/A self assertEqual N/A N/A N/A FilterExpression s p resolve c val N/A N/A N/A fe_test article.section News N/A N/A fe_test article.section|upper NEWS N/A N/A fe_test "News" News N/A N/A fe_test 'News' News N/A N/A fe_test "Some \"Good\" News" Some "Good" News N/A N/A fe_test "Some \"Good\" News" Some "Good" News N/A N/A fe_test 'Some \'Bad\' News' Some 'Bad' News N/A fe N/A FilterExpression "Some \"Good\" News" p N/A N/A N/A self assertEqual N/A fe filters N/A N/A N/A N/A self assertEqual N/A fe var Some "Good" News N/A N/A N/A self assertRaises TemplateSyntaxError FilterExpression article._hidden|upper p N/A test_variable_parsing N/A N/A self N/A N/A N/A c N/A article N/A section News N/A N/A N/A self assertEqual N/A N/A N/A Variable article.section resolve c News N/A N/A N/A self assertEqual N/A N/A N/A Variable "News" resolve c News N/A N/A N/A self assertEqual N/A N/A N/A Variable 'News' resolve c News N/A N/A N/A self assertEqual N/A N/A N/A Variable _(article.section) resolve c News N/A N/A N/A self assertEqual N/A N/A N/A Variable _("Good News") resolve c Good News N/A N/A N/A self assertEqual N/A N/A N/A Variable _('Better News') resolve c Better News N/A N/A N/A self assertEqual N/A N/A N/A Variable "Some \"Good\" News" resolve c Some "Good" News N/A N/A N/A self assertEqual N/A N/A N/A Variable 'Some \'Better\' News' resolve c Some 'Better' News N/A N/A N/A self assertRaises TemplateSyntaxError Variable article._hidden N/A N/A