#NEWLINE# def test_diff_words4( ) : #NEWLINE# #INDENT# A = 'hello world' #NEWLINE# B = 'hello beautiful' #NEWLINE# result = words_diff ( A , B ) #NEWLINE# assert ( result [ 0 ] [ 'state' ] == 'unchanged' ) #NEWLINE# assert ( result [ 1 ] [ 'state' ] == 'deleted' ) #NEWLINE# assert ( result [ 2 ] [ 'state' ] == 'added' )