A person with diabetes may need to have a urine test if they notice blood in their urine, or to check for high blood sugar, diabetic ketoacidosis, or a urinary tract infection. A urine test is ...