#NEWLINE# def test_checked_out_merge( self ) : #NEWLINE# #INDENT# user = factories . AuthUserFactory ( ) #NEWLINE# node = ProjectFactory ( creator = user ) #NEWLINE# osfstorage = node . get_addon ( 'osfstorage' ) #NEWLINE# root_node = osfstorage . get_root ( ) #NEWLINE# file = root_node . append_file ( 'test_file' ) #NEWLINE# user_merge_target = factories . AuthUserFactory ( ) #NEWLINE# file . check_in_or_out ( user , user , save = True ) #NEWLINE# file . reload ( ) #NEWLINE# assert_equal ( file . checkout , user ) #NEWLINE# user_merge_target . merge_user ( user ) #NEWLINE# file . reload ( ) #NEWLINE# assert_equal ( user_merge_target , file . checkout )