#NEWLINE# def test_save_and_restore( self ) : #NEWLINE# #INDENT# 'Test if saving a visualization and restoring it works.' #NEWLINE# engine = self . e #NEWLINE# scene = self . scene #NEWLINE# f = BytesIO ( ) #NEWLINE# f . name = abspath ( 'test.mv2' ) #NEWLINE# engine . save_visualization ( f ) #NEWLINE# f . seek ( 0 ) #NEWLINE# engine . close_scene ( scene ) #NEWLINE# engine . load_visualization ( f ) #NEWLINE# s = self . scene = engine . current_scene #NEWLINE# o = s . children [ 0 ] . children [ 0 ] . children [ 0 ] . children [ 0 ] #NEWLINE# self . assertEqual ( o . outline_filter . output . bounds , ( 1.0 , 2.0 , 1.0 , 2.0 , 1.0 , 2.0 ) )