コード例 #1
0
 def test_root_with_mock_problem_with_child_and_grandchild(self):
     try:
         root = Node.root(MockProblem())
         child = Node(0, parent=root)
         grandchild = Node(2, parent=child)
     except RecursionError:
         self.fail(msg="Recursion problem.")
コード例 #2
0
 def test_root_with_mock_problem(self):
     try:
         root = Node.root(MockProblem())
     except RecursionError:
         self.fail(msg="Recursion problem.")