def METHOD_NAME(self):
    row = factories.CandidateSearchFactory(
        name='Bartlet', fulltxt=sa.func.to_tsvector('Bartlet P0123'),
    )
    decoy = factories.CandidateSearchFactory()  # noqa
    rest.db.session.flush()
    results = self._results(api.url_for(CandidateNameSearch, q='P0123'))
    assert len(results) == 1
    assert results[0]['name'] == row.name