Ejemplo n.º 1
0
 def test_SearchRecursiveFunctionCall_None(self):
     target = SourceCode(self.none_ast)
     steps = target.SearchRecursiveFunctionCall()
     self.assertEqual(steps, [])
Ejemplo n.º 2
0
 def test_SearchRecursiveFunctionCall_valid(self):
     target = SourceCode(self.valid_ast)
     funccalls = target.SearchRecursiveFunctionCall()
     self.assertEqual(len(funccalls), 6)
     example = funccalls[0]
     self.assertEqual(example.name, 'g_function_def1')