#NEWLINE# def test_cancel_edit( self ) : #NEWLINE# #INDENT# from shinymud.modes.text_edit_mode import TextEditMode #NEWLINE# room = self . area . new_room ( ) #NEWLINE# mode = TextEditMode ( self . bob , room , 'description' , room . description ) #NEWLINE# mode . edit_lines = [ 'This be a shiny room here!' , 'There be goblins here!' , 'And a pirate!' ] #NEWLINE# mode . finish_editing ( ) #NEWLINE# mode = TextEditMode ( self . bob , room , 'description' , room . description ) #NEWLINE# mode . insert_line ( line = '2' , args = 'There be spam and eggs here!' ) #NEWLINE# mode . cancel_edit ( ) #NEWLINE# self . assertFalse ( ( 'There be spam and eggs here!' in self . description ) )