#NEWLINE# def test_user_function_name_completion_matches_anywhere( completer , complete_event ) : #NEWLINE# #INDENT# text = 'SELECT om' #NEWLINE# position = len ( 'SELECT om' ) #NEWLINE# result = completer . get_completions ( Document ( text = text , cursor_position = position ) , complete_event ) #NEWLINE# assert ( set ( result ) == set ( [ Completion ( text = 'custom_func1' , start_position = ( - 2 ) , display_meta = 'function' ) , Completion ( text = 'custom_func2' , start_position = ( - 2 ) , display_meta = 'function' ) ] ) )