def METHOD_NAME(self):
    counts = [
        models.Candidate.query.count(),
        models.CandidateDetail.query.count(),
        models.CandidateHistory.query.distinct(
            models.CandidateHistory.candidate_id
        ).count(),
        models.CandidateSearch.query.count(),
    ]
    assert len(set(counts)) == 1