“Random Virtue Testing” — A form of entrapment, in which a law enforcement officer induces someone to commit an offence he would not otherwise be likely to commit. It can be the basis for a defence against a criminal charge.
In the leading case of R. v. Barnes,  1 S.C.R. 449, “buy and bust” was put to the test.
The appellant had been found guilty of trafficking and possession of marijuana, but the trial judge found that the police officer had engaged in “random virtue testing” and granted a judicial stay for entrapment. Crown appeal was dismissed, with the court finding, in part, that the officer “did not have a ‘reasonable suspicion’ that the appellant was already engaged in unlawful drug‑related activity.”
R. v. Stock et al, 2009 ONCJ 325 (CanLII)
Wildlife officers lay POA charges after a “sting” operation.
Luring the lurers: B.C. Court OKs online police tactic: