Gas fitters put a pressure gauge on the main supply and leave it for a period of time (couple of hours?) and measure the amount of loss. Regulations around here are very stringent and the amount of loss allowed is next to nothing.
Here is a pic of a house where the gas man stuffed up