#NEWLINE# def test_copy_page_updates_user( self ) : #NEWLINE# #INDENT# event_moderator = get_user_model ( ) . objects . get ( username = 'eventmoderator' ) #NEWLINE# christmas_event = EventPage . objects . get ( url_path = '/home/events/christmas/' ) #NEWLINE# christmas_event . save_revision ( ) #NEWLINE# new_christmas_event = christmas_event . copy ( update_attrs = { #NEWLINE# #INDENT# 'title' : 'New christmas event' , #NEWLINE# 'slug' : 'new-christmas-event' , #NEWLINE# #UNINDENT# } , user = event_moderator ) #NEWLINE# self . assertEqual ( new_christmas_event . owner , event_moderator ) #NEWLINE# self . assertEqual ( new_christmas_event . get_latest_revision ( ) . user , event_moderator )