Disconnect the parking brake switch connector, and then connect the tester to the parking brake switch and the bolt fixing the switch.
If there is continuity when the parking brake lever is pulled and there is non-continuity when it is released, the parking brake switch is good.