def test_config(self): json = Config().to_json() config = Config.from_json(json) self.assertEquals(config.rest_api, Config().rest_api)
def __new__(mcs, *args, **kwargs): x = super().__new__(mcs, *args, **kwargs) x.config = Config.from_json(x.__name__.lower()) return x