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