#NEWLINE# def test_select_keyword_completion( completer , complete_event ) : #NEWLINE# #INDENT# text = 'SEL' #NEWLINE# position = len ( 'SEL' ) #NEWLINE# result = completer . get_completions ( Document ( text = text , cursor_position = position ) , complete_event ) #NEWLINE# assert ( set ( result ) == set ( [ Completion ( text = 'SELECT' , start_position = ( - 3 ) , display_meta = 'keyword' ) ] ) )