Exemplo n.º 1
0
 def test_to_str_no_defaults(self):
     node = TemplateThatStarNode("3,2")
     self.assertEqual("[THATSTAR[WORD]3,2]", node.to_string())
Exemplo n.º 2
0
 def test_to_str_star(self):
     node = TemplateThatStarNode("1,*")
     self.assertEqual("[THATSTAR[WORD]1,*]", node.to_string())
Exemplo n.º 3
0
 def test_to_str_no_defaults(self):
     node = TemplateThatStarNode(3, 2)
     self.assertEqual("[THATSTAR question=3 sentence=2]", node.to_string())
Exemplo n.º 4
0
 def test_to_str_star(self):
     node = TemplateThatStarNode(1, -1)
     self.assertEqual("[THATSTAR sentence=*]", node.to_string())
Exemplo n.º 5
0
 def test_to_str_defaults(self):
     node = TemplateThatStarNode()
     self.assertEqual("[THATSTAR]", node.to_string())
Exemplo n.º 6
0
 def test_to_str_star(self):
     node = TemplateThatStarNode(1, -1)
     self.assertEqual("[THATSTAR question=-1]", node.to_string())
Exemplo n.º 7
0
 def test_to_str_star(self):
     node = TemplateThatStarNode(1, -1)
     self.assertEquals("THATSTAR sentence=*", node.to_string())
Exemplo n.º 8
0
 def test_to_str_no_defaults(self):
     node = TemplateThatStarNode(3, 2)
     self.assertEquals("THATSTAR question=3 sentence=2", node.to_string())
Exemplo n.º 9
0
 def test_to_str_defaults(self):
     node = TemplateThatStarNode()
     self.assertEquals("THATSTAR", node.to_string())