It isn't as easy as all that. My girls were very well behaved and had rules and knew the consequences (which always were carried through) and in spite of that did have an occasional, all hell breaks loose, tantrum. Especially when they reached that age that signals them to be independent and control their own destiny. Surprisingly that is around the ages of 3 to 10.
I have a grandson that I know for a fact is raised with rules and consequences, without fail, yet, he will test the resolve whenever the feeling hits him. He actually said to me once when I asked him why he did things when he knew what the end result would be, "I just figured that what I wanted to do was worth the punishment". He just didn't care. If what he wanted to do was worth more to him then the punishment, he just did it and worried about the result later. I guess that is the making of a risk taker and were would we be without them.