#NEWLINE# def test_diff_words2( ) : #NEWLINE# #INDENT# A = 'second one' #NEWLINE# B = 'first test' #NEWLINE# result = words_diff ( A , B ) #NEWLINE# assert ( A [ 0 ] [ 'state' ] == 'deleted' ) #NEWLINE# assert ( result [ 1 ] [ 'state' ] == 'deleted' ) #NEWLINE# assert ( result [ 2 ] [ 'state' ] == 'added' ) #NEWLINE# assert ( result [ 3 ] [ 'state' ] == 'added' )