def _testValidateHandle(): Nutmeg.init() fig = Nutmeg.figure('fig', 'figure_single.qml') print(Nutmeg.isValidHandle('fig.ax.redPlot'))