コード例 #1
0
 def test_to_str_no_defaults(self):
     node = TemplateThatStarNode("3,2")
     self.assertEqual("[THATSTAR[WORD]3,2]", node.to_string())
コード例 #2
0
 def test_to_str_star(self):
     node = TemplateThatStarNode("1,*")
     self.assertEqual("[THATSTAR[WORD]1,*]", node.to_string())
コード例 #3
0
 def test_to_str_no_defaults(self):
     node = TemplateThatStarNode(3, 2)
     self.assertEqual("[THATSTAR question=3 sentence=2]", node.to_string())
コード例 #4
0
 def test_to_str_star(self):
     node = TemplateThatStarNode(1, -1)
     self.assertEqual("[THATSTAR sentence=*]", node.to_string())
コード例 #5
0
 def test_to_str_defaults(self):
     node = TemplateThatStarNode()
     self.assertEqual("[THATSTAR]", node.to_string())
コード例 #6
0
 def test_to_str_star(self):
     node = TemplateThatStarNode(1, -1)
     self.assertEqual("[THATSTAR question=-1]", node.to_string())
コード例 #7
0
ファイル: test_thatstar.py プロジェクト: Freiza/program-y
 def test_to_str_star(self):
     node = TemplateThatStarNode(1, -1)
     self.assertEquals("THATSTAR sentence=*", node.to_string())
コード例 #8
0
ファイル: test_thatstar.py プロジェクト: Freiza/program-y
 def test_to_str_no_defaults(self):
     node = TemplateThatStarNode(3, 2)
     self.assertEquals("THATSTAR question=3 sentence=2", node.to_string())
コード例 #9
0
ファイル: test_thatstar.py プロジェクト: Freiza/program-y
 def test_to_str_defaults(self):
     node = TemplateThatStarNode()
     self.assertEquals("THATSTAR", node.to_string())