#NEWLINE# def _test_layout_added_to_root( self , layout_generator , children = None ) : #NEWLINE# #INDENT# layout = layout_generator ( ( self . component if ( children is None ) else children ) ) #NEWLINE# self . assertIn ( self , io . curdoc ( ) . roots ) #NEWLINE# io . curdoc ( ) . clear ( )