A spirometry pulmonary function test can confirm whether a patient with symptoms actually has asthma.