def make_config(self, data, *args): cfg = config() if data: cfg.load(config_file=self.tempfiles[data], args=args) else: cfg.load() return cfg
def test_00_load_core(): """actors.core: actor loads""" conf = config() conf.load() conn = mock_conn() agent = mock_agent() agent.setup(conf,conn) agent.load_actor("actor_core")
def setUp(self): conf = config() conf.load() conn = mock_conn() self.dummy = mock_agent() self.dummy.setup(conf,conn)
def test_00_not_loaded(self): """config: SHOULD give an error if accessed before config is loaded""" cfg = config() x = cfg["foo"]