Yeast infection

How do doctors test you for yeast infections?