def test_function_execution():
 s = '\n    def x():\n        return str()\n    x'
 (func, evaluator) = get_definition_and_evaluator(s)
 assert (len(evaluator.execute(func)) == 1)
 assert (len(evaluator.execute(func)) == 1)

def test_function_execution ( ) : s = '\n    def x():\n        return str()\n    x' ( func , evaluator ) = get_definition_and_evaluator ( s ) assert ( len ( evaluator . execute ( func ) ) == 1 ) assert ( len ( evaluator . execute ( func ) ) == 1 )
weve been having an issue of a mutable list that was changed inside the function execution .