If when it has fuel in the carb (just after running) if you cut it off, pump the pedal once and see or hear it squirting fuel in the throat then it's working.
If the fuel pump is bad, or more accurately one if it's two check valves, then with the line removed from the carb bump the starter with your finger over the line and it either won't pump or won't hold any pressure after it does pump.
Sometimes to free a stuck or dirty check valve you can remove both lines from the pump and with compressed air blow in the inlet. Worth a try before removing and rebuilding/swapping it.
Grigg