示例#1
0
 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")
示例#3
0
 def setUp(self):
   conf = config()
   conf.load()
   conn = mock_conn()
   self.dummy = mock_agent()
   self.dummy.setup(conf,conn)
示例#4
0
 def test_00_not_loaded(self):
     """config: SHOULD give an error if accessed before config is loaded"""
     cfg = config()
     x = cfg["foo"]