Pregnancy test

Which kinda pregnancy test is more accurate, a urine or blood test?