#NEWLINE# def test_get_nodes_by_type( self ) : #NEWLINE# #INDENT# 'WaffleNode.get_nodes_by_type() should correctly find all child nodes' #NEWLINE# test_template = Template ( '{% load waffle_tags %}{% switch "x" %}{{ a }}{% else %}{{ b }}{% endswitch %}' ) #NEWLINE# children = test_template . nodelist . get_nodes_by_type ( VariableNode ) #NEWLINE# self . assertEqual ( len ( self ) , 2 )