#NEWLINE# def test_append( ) : #NEWLINE# #INDENT# view = mock . Mock ( ) #NEWLINE# edit = object ( ) #NEWLINE# view . begin_edit . return_value = edit #NEWLINE# view . size . return_value = 100 #NEWLINE# su_lib_view . append ( view , 'new text' ) #NEWLINE# assert ( view . insert . call_args == ( ( edit , 100 , 'new text' ) , ) )