The Andy Griffith Show
Barney Runs for Sheriff (5x21)
:
Andy is offered a job in Minnesota so Barney decides to run for sheriff in the upcoming election. But when Andy's job offer falls through, he returns to Mayberry to find Barney with a case of campaign fever, aiming to unseat Andy.