#NEWLINE# def test_join_functions_using_suggests_common_columns( completer , complete_event ) : #NEWLINE# #INDENT# text = 'SELECT * FROM set_returning_func() f1\n              INNER JOIN set_returning_func() f2 USING (' #NEWLINE# pos = len ( text ) #NEWLINE# result = set ( completer . get_completions ( Document ( text = text , cursor_position = pos ) , complete_event ) ) #NEWLINE# assert ( set ( result ) == set ( [ Completion ( text = 'x' , start_position = 0 , display_meta = 'column' ) , Completion ( text = 'y' , start_position = 0 , display_meta = 'column' ) ] ) )