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