Doctors often diagnose kidney infections based on signs and symptoms, such as fever and back pain. If your doctor suspects you have a kidney infection, you may be asked to provide a urine sample to test for bacteria, blood or pus is in your urine.