#NEWLINE# @ pytest . mark . parametrize ( 'expression' , [ 'SELECT * FROM (S' , 'SELECT * FROM foo WHERE EXISTS (S' , 'SELECT * FROM foo WHERE bar AND NOT EXISTS (S' ] ) #NEWLINE# def test_sub_select_partial_text_suggests_keyword( expression ) : #NEWLINE# #INDENT# suggestion = suggest_type ( expression , expression ) #NEWLINE# assert ( suggestion == ( Keyword ( ) , ) )