Pregnancy test

How long after unprotected sex should I test? 
I've not yet had my period so I can't wait til I've missed one
I should make that clear, I HAVE had a period before, but it hasn't come back  after having my baby yet