#NEWLINE# def test_importer_wrapping_escaped( index ) : #NEWLINE# #INDENT# Imports . set_style ( multiline = 'backslash' , max_columns = 80 ) #NEWLINE# src = dedent ( '\n        from injector import Binder, Injector, InstanceProvider, Key, MappingKey, Module, Scope, ScopeDecorator, SequenceKey, inject, provides, singleton\n        from waffle import stuff\n\n        Binder, Injector, InstanceProvider, Key, MappingKey, Module, Scope, ScopeDecorator, SequenceKey, inject, provides, singleton, stuff\n        ' ) . strip ( ) #NEWLINE# expected_src = dedent ( '\n        from injector import Binder, Injector, InstanceProvider, Key, MappingKey, \\\n            Module, Scope, ScopeDecorator, SequenceKey, inject, provides, singleton\n        from waffle import stuff\n\n\n        Binder, Injector, InstanceProvider, Key, MappingKey, Module, Scope, ScopeDecorator, SequenceKey, inject, provides, singleton, stuff\n        ' ) . strip ( ) #NEWLINE# scope = Scope . from_source ( src ) #NEWLINE# new_src = update_imports ( src , index , * scope . find_unresolved_and_unreferenced_symbols ( ) ) . strip ( ) #NEWLINE# assert ( expected_src == new_src )