DNA TESTING DOG POOP???

Stupid question.
How do they know the poop you give them if from your dog?
(Or even from A dog?:D)