If they have investments, that income can be counted. If they are a member of congress, their assets are normally put into a blind trust. If they lose election, that trust would now be used as income.
There are a lot of questions left in your original post.
What elected position? national, state, or local.
How many years served? Does it provide a retirement after defeat or retirement?