Some countries today use this method, where the national identity is practically the religion, and you really cannot branch out that far into any kind of belief system that isn’t part of the party structure. North Korea is entirely entrenched in this philosophy, but China is not that far behind. The Party does allow you to have a freedom of religion, but they still do everything they can to make you want to avoid religion, and punish you if you practice in subtle ways.