#NEWLINE# def test_after_fork_copies_versions( self ) : #NEWLINE# #INDENT# num_versions = 5 #NEWLINE# path = 'jazz/dreamers-ball.mp3' #NEWLINE# record = self . node_settings . get_root ( ) . append_file ( path ) #NEWLINE# for _ in range ( num_versions ) : #NEWLINE# #INDENT# version = factories . FileVersionFactory ( ) #NEWLINE# record . versions . append ( version ) #NEWLINE# #UNINDENT# record . save ( ) #NEWLINE# fork = self . project . fork_node ( self . auth_obj ) #NEWLINE# fork_node_settings = fork . get_addon ( 'osfstorage' ) #NEWLINE# fork_node_settings . reload ( ) #NEWLINE# cloned_record = fork_node_settings . get_root ( ) . find_child_by_name ( path ) #NEWLINE# assert_equal ( cloned_record . versions , record . versions ) #NEWLINE# assert_true ( fork_node_settings . root_node )