def test_to_str_no_defaults(self): node = TemplateResponseNode(index=2) self.assertEquals("RESPONSE index=2", node.to_string())
def test_to_str_defaults(self): node = TemplateResponseNode() self.assertEquals("RESPONSE", node.to_string())
def test_to_str_no_defaults(self): node = TemplateResponseNode(index=2) self.assertEqual("[RESPONSE[WORD]2]", node.to_string())