@pytest.mark.parametrize('query,expected', [('dog', '"dog"'), ('cat,', '"cat,"'), ('cat dog', '"cat" "dog"'), ('"cat dog"', '"cat dog"'), ('"cat dog" fish', '"cat dog" "fish"'), ('cat"', '"cat"'), ('"cat dog" "fish', '"cat dog" "fish"')])
def test_escape_fts(query, expected):
    assert (expected == utils.escape_fts(query))
@pytest.mark.parametrize('query,expected', [('dog', '"dog"'), ('cat,', '"cat,"'), ('cat dog', '"cat" "dog"'), ('"cat dog"', '"cat dog"'), ('"cat dog" fish', '"cat dog" "fish"'), ('cat"', '"cat"'), ('"cat dog" "fish', '"cat dog" "fish"')])
def test_escape_fts(query, expected):
    assert (expected == utils.escape_fts(query))