def display_file_modified_both(): diffmodel = EditReportingFakeDiffModel() diffmodel.has_edit[ directions.LEFT ] = True diffmodel.has_edit[ directions.RIGHT ] = True view = NCursesView( diffmodel ) view.win_width = 60 view.win_height = 5 view.filename_left = "filename_left.txt" view.filename_right = "filename_right.txt" actions = [] (window, header, status ) = view.show( actions ) assert_strings_equal( header, "[ni]*filename_left.txt *filename_right.txt \n" )