eww, line continuation characters. Maybe

    unit = (self.outline.section('Test Section')
                                .subsection('Test Subsection').toggle_expand()
                                .unit('Test Unit').go_to()
    )

? Or maybe just named variables for section, subsection and unit?