def _load_from_str(self): json_str = json.dumps(self.TEST_CONFIG_1) cfg = Config() cfg.loadFromString(json_str) return cfg