示例#1
0
 def setUp(self):
     """Establish a clean test environment"""
     self.stubs = stubout.StubOutForTesting()
     stubs.stub_out_registry_and_store_server(self.stubs)
     stubs.stub_out_filesystem_backend()
     conf = test_utils.TestConfigOpts(CONF)
     self.adm_context = rcontext.RequestContext(is_admin=True)
     self.context = rcontext.RequestContext(is_admin=False)
     db_api.configure_db(conf)
     self.destroy_fixtures()
     self.create_fixtures()
示例#2
0
 def setUp(self):
     """Establish a clean test environment"""
     self.stubs = stubout.StubOutForTesting()
     stubs.stub_out_registry_and_store_server(self.stubs)
     stubs.stub_out_filesystem_backend()
     conf = test_utils.TestConfigOpts(CONF)
     self.adm_context = rcontext.RequestContext(is_admin=True)
     self.context = rcontext.RequestContext(is_admin=False)
     db_api.configure_db(conf)
     self.destroy_fixtures()
     self.create_fixtures()
示例#3
0
 def __init__(self, conf):
     self.conf = conf
     self.conf.register_opts(self.opts)
     db_api.configure_db(conf)
示例#4
0
 def __init__(self, conf):
     self.conf = conf
     self.conf.register_opts(self.opts)
     db_api.configure_db(conf)
示例#5
0
 def __init__(self, conf):
     self.conf = conf
     db_api.configure_db(conf)
示例#6
0
 def __init__(self, conf):
     self.conf = conf
     db_api.configure_db(conf)