#NEWLINE# def test_with_new_name( self ) : #NEWLINE# #INDENT# tracks = [ Track ( ) ] #NEWLINE# last_modified = 1390942873000 #NEWLINE# playlist = Playlist ( uri = 'an uri' , name = 'a name' , tracks = tracks , last_modified = last_modified ) #NEWLINE# new_playlist = playlist . replace ( name = 'another name' ) #NEWLINE# self . assertEqual ( new_playlist . uri , 'an uri' ) #NEWLINE# self . assertEqual ( new_playlist . name , 'another name' ) #NEWLINE# self . assertEqual ( list ( new_playlist . tracks ) , tracks ) #NEWLINE# self . assertEqual ( new_playlist . last_modified , last_modified )