My google search has unearthed "La Douleur Exquise" but that seems to carry mainly erotic or romantic connotations. I wonder if there is a term from psychology that is more general, or that refers to the phenomenon of a child who does something only because he has been told not to do it.
Seems the child enjoys the sweet taste of forbidden fruit or stolen waters.
Fig. someone or something that one finds attractive or desirable partly because having the person or thing is immoral or illegal. (Biblical; from the apple in the Garden of Eden that was forbidden to Adam by God.)
Jim flirts with his sister-in-law only because she's forbidden fruit.
The boy watches that program only when his parents are out. It's forbidden fruit.
— McGraw-Hill Dictionary of American Idioms
On a similar biblical vein, based on Steve Lovell's comment : stolen waters as in Proverbs 9:17 :
Stolen waters are sweet, and bread eaten in secret is pleasant.
If you're specifically looking for a noun to call a child that seems to take pleasure in doing the opposite of what they're told, I'd recommend contrarian:
a. a contrary or obstinate person
b. (as modifier)
- a contrarian investor
- contrarian instincts
Collins English Dictionary. Copyright © HarperCollins Publishers