def METHOD_NAME(last_focused_filename,
                           expected_current_filename):
    editor = editor_plugin
    expected_filenames, tmpdir = python_files
    if expected_current_filename is None:
        expected_current_filename = expected_filenames[0]
    expected_current_filename = osp.join(tmpdir, expected_current_filename)
    options_dict = {
        # For tests
        'filenames': expected_filenames,
        'max_recent_files': 20,
        # To make tests pass
        'indent_chars': '*    *',
        'show_tab_bar': True,
        'code_folding': True,
        'edge_line': True,
        'indent_guides': False,
        'scroll_past_end': False,
        'line_numbers': True,
        'occurrence_highlighting/timeout': 1500,
        'tab_stop_width_spaces': 4,
        'show_class_func_dropdown': False,
    }
    if last_focused_filename is not None:
        splitsettings = [(False,
                          osp.join(tmpdir, last_focused_filename),
                          [1] * len(expected_filenames))]
        layout_dict = {'layout_settings': {'splitsettings': splitsettings}}
        options_dict.update(layout_dict)
    def get_option(option, default=None):
        return options_dict.get(option)
    def set_option(option, value):
        options_dict[option] = value
    editor.get_option = get_option
    editor.set_option = set_option
    editor.setup_open_files()
    return editor, expected_filenames, expected_current_filename