Brake light switch picture

Just out of curiosity if you pull up on the brake pedal do the lights go out?

Reason I'm asking, you could have a pinched wire, or connector in the wrong socket