#NEWLINE# def test_ranking_ignores_identifier_quotes( completer ) : #NEWLINE# #INDENT# 'When calculating result rank, identifier quotes should be ignored.\n\n    The result ranking algorithm ignores identifier quotes. Without this\n    correction, the match "user", which Postgres requires to be quoted\n    since it is also a reserved word, would incorrectly fall below the\n    match user_action because the literal quotation marks in "user"\n    alter the position of the match.\n\n    This test checks that the fuzzy ranking algorithm correctly ignores\n    quotation marks when computing match ranks.\n\n    ' #NEWLINE# text = 'user' #NEWLINE# collection = [ 'user_action' , '"user"' ] #NEWLINE# matches = completer . find_matches ( text , collection ) #NEWLINE# assert ( len ( matches ) == 2 )