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()
def __init__(self, conf): self.conf = conf self.conf.register_opts(self.opts) db_api.configure_db(conf)
def __init__(self, conf): self.conf = conf db_api.configure_db(conf)