#NEWLINE# def testCanDeleteAtEof_NewLine( self ) : #NEWLINE# #INDENT# self . write ( 'abc\nabc\nabc\nxxx\n' ) #NEWLINE# self . clear_sel ( ) #NEWLINE# self . add_sel ( self . R ( ( 3 , 0 ) , ( 3 , 0 ) ) ) #NEWLINE# r = CURRENT_LINE_RANGE . copy ( ) #NEWLINE# r [ 'left_ref' ] = '4' #NEWLINE# self . view . run_command ( 'ex_delete' , { #NEWLINE# #INDENT# 'command_line' : 'delete' , #NEWLINE# #UNINDENT# } ) #NEWLINE# actual = self . view . substr ( self . R ( 0 , self . view . size ( ) ) ) #NEWLINE# expected = 'abc\nabc\nabc\n' #NEWLINE# self . assertEqual ( expected , actual )