How early is to early?

How early can you take a pregnancy test?