The Blessed Virgin Mary's words to Saint Birgitta of Sweden about how the good spirit is recognized by seven signs and the bad spirit is discerned by as many signs.
My daughter, you can recognize both the Holy Spirit and the unclean spirit through seven signs. First, the Spirit of God makes a man deem the world worthless and consider in his heart all worldly honor as mere air. Second, it endears God to the soul, and all delight in the flesh grows cold. Third, it inspires him to patience and to glorying only in God. Fourth, it stimulates the mind to be loving and compassionate with one's neighbor and even with one's enemies. Fifth, it inspires him to all kinds of abstinence, even from licit things. Sixth, it makes him trust in God in the midst of hardships and even to glory in hardships. Seventh, it gives him the desire of wanting to depart and to be with Christ, rather than to prosper in the world and become soiled.
The evil spirit has seven effects to the contrary. First, it makes the world seem sweet, and heaven distasteful. Second, it makes a man seek honors and forget about the meaning of his life. Third, it arouses hatred and impatience in the heart. Fourth, it makes him bold toward God and obstinate in his own plans. Fifth, it leads him to make light of his sins and to make excuses for them. Sixth, it inspires in him frivolity of mind and every carnal impurity. Seventh, it inspires in him the hope of a long life and a feeling a shame about going to confession. Guard your thoughts carefully, then, so that you do not get deceived by this spirit.
What Must You Do To Get to Heaven?