@property
    def locale(self):
        if not hasattr(self, "_locale"):
            self._locale = self.get_user_locale()
            if not self._locale:
                self._locale = self.get_browser_locale()
                assert self._locale
        return self._locale
Test initialization.
dataset/ETHPy150Open RobotWebTools/rosbridge_suite/rosbridge_server/src/tornado/web.py/RequestHandler.locale--crossover with--dataset/ETHPy150Open tonioo/modoboa/modoboa/limits/tests/test_user_limits.py/DomainAdminTestCase.setUp