public void ResetCypythonLogsToConsoleAfterRun() { (CurrentDynamoModel.CurrentWorkspace as HomeWorkspaceModel).RunSettings.RunType = RunType.Manual; var expectedOutput = @"attempting reload of cpython3 modules Python Script: considering sys Python Script: considering builtins Python Script: considering _frozen_importlib Python Script: considering _imp Python Script: considering _warnings Python Script: considering _frozen_importlib_external Python Script: considering _io Python Script: considering marshal Python Script: considering nt Python Script: considering _thread Python Script: considering _weakref Python Script: considering winreg Python Script: considering time Python Script: considering zipimport Python Script: considering zlib Python Script: considering _codecs Python Script: considering codecs Python Script: considering encodings.aliases Python Script: considering encodings Python Script: considering encodings.utf_8 Python Script: considering encodings.cp1252 Python Script: considering __main__ Python Script: considering encodings.latin_1 Python Script: considering _abc Python Script: considering abc Python Script: considering io Python Script: considering _collections_abc Python Script: considering _operator Python Script: considering operator Python Script: considering keyword Python Script: considering _heapq Python Script: considering heapq Python Script: considering itertools Python Script: considering reprlib Python Script: considering _collections Python Script: considering collections Python Script: considering _stat Python Script: considering stat Python Script: considering genericpath Python Script: considering ntpath Python Script: considering os.path Python Script: considering os Python Script: considering types Python Script: considering enum Python Script: considering _sre Python Script: considering sre_constants Python Script: considering sre_parse Python Script: considering sre_compile Python Script: considering _functools Python Script: considering functools Python Script: considering _locale Python Script: considering copyreg Python Script: considering re Python Script: considering platform Python Script: considering _socket Python Script: considering collections.abc Python Script: considering math Python Script: considering select Python Script: considering selectors Python Script: considering errno Python Script: considering socket Python Script: considering warnings Python Script: considering CLR Python Script: considering clr Python Script: considering atexit Python Script: considering clr._extras Python Script: considering Autodesk Python Script: considering Autodesk.DesignScript Python Script: considering Autodesk.DesignScript.Geometry Python Script: considering importlib._bootstrap Python Script: considering importlib._bootstrap_external Python Script: considering importlib Python Script: considering importlib.machinery Python Script: considering importlib.abc Python Script: considering contextlib Python Script: considering importlib.util"; var pythonNode = new PythonNode(); CurrentDynamoModel.CurrentWorkspace.AddAndRegisterNode(pythonNode); pythonNode.Engine = PythonEngineVersion.CPython3; RunCurrentModel(); CurrentDynamoModel.OnRequestPythonReset(nameof(PythonEngineVersion.CPython3)); foreach (var line in expectedOutput.Split(new[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries)) { StringAssert.Contains(line, CurrentDynamoModel.Logger.LogText); } }