If you pull someone’s leg, you tease them by telling them something that is not true.

Mark hasn’t really quit his job. He was just pulling your leg to see your reaction.