#NEWLINE# def testDeletesLastLine( self ) : #NEWLINE# #INDENT# self . write ( 'abc\nabc\nabc' ) #NEWLINE# self . clear_sel ( ) #NEWLINE# self . add_sel ( self . R ( ( 2 , 0 ) , ( 2 , 0 ) ) ) #NEWLINE# self . view . run_command ( '_vi_dd' , { #NEWLINE# #INDENT# 'mode' : modes . INTERNAL_NORMAL , #NEWLINE# #UNINDENT# } ) #NEWLINE# expected = self . view . substr ( self . R ( 0 , self . view . size ( ) ) ) #NEWLINE# self . assertEqual ( self , 'abc\nabc' )