def test_to_str_no_defaults(self): node = TemplateThatStarNode("3,2") self.assertEqual("[THATSTAR[WORD]3,2]", node.to_string())
def test_to_str_star(self): node = TemplateThatStarNode("1,*") self.assertEqual("[THATSTAR[WORD]1,*]", node.to_string())
def test_to_str_no_defaults(self): node = TemplateThatStarNode(3, 2) self.assertEqual("[THATSTAR question=3 sentence=2]", node.to_string())
def test_to_str_star(self): node = TemplateThatStarNode(1, -1) self.assertEqual("[THATSTAR sentence=*]", node.to_string())
def test_to_str_defaults(self): node = TemplateThatStarNode() self.assertEqual("[THATSTAR]", node.to_string())
def test_to_str_star(self): node = TemplateThatStarNode(1, -1) self.assertEqual("[THATSTAR question=-1]", node.to_string())
def test_to_str_star(self): node = TemplateThatStarNode(1, -1) self.assertEquals("THATSTAR sentence=*", node.to_string())
def test_to_str_no_defaults(self): node = TemplateThatStarNode(3, 2) self.assertEquals("THATSTAR question=3 sentence=2", node.to_string())
def test_to_str_defaults(self): node = TemplateThatStarNode() self.assertEquals("THATSTAR", node.to_string())