Needle test of pregnancy

Flavia
I saw that putting a needle inside a little bottle in urinalysis can tell you if you're pregnant or not. If the needle got darker, than it's positive. Do you girls know if this really works?