#NEWLINE# def _test_children_removed_from_root( self , layout_generator , children = None ) : #NEWLINE# #INDENT# io . curdoc ( ) . add_root ( ( self . component if ( children is None ) else children [ 0 ] [ 0 ] ) ) #NEWLINE# layout = layout_generator ( ( self . component if ( children is None ) else children ) ) #NEWLINE# self . assertNotIn ( self . component , io . curdoc ( ) . roots ) #NEWLINE# io . curdoc ( ) . clear ( )