Length isn't too important. You could just check ``eq_([p.name for p in providers], [settings.PAYMENT_PROVIDER])``