def test_get_nodes_by_type(self):
        test_template = Template('{% load waffle_tags %}{% switch "x" %}{{ a }}{% else %}{{ b }}{% endswitch %}')
        children = test_template.nodelist.get_nodes_by_type(VariableNode)
        self.assertEqual(len(children), 2)
WaffleNode.get_nodes_by_type() should correctly find all child nodes
dataset/ETHPy150Open jsocol/django-waffle/waffle/tests/test_templates.py/WaffleTemplateTests.test_get_nodes_by_type