Have one’s tail up
To be in good spirits, the opposite of having one’s tail between one’s legs, derives from observation of dogs and dates from at least The Middle Ages, if not before.