def test_sm_backend_conf_delete(self): ctxt = context.get_admin_context() params = _get_sm_backend_params() beconf = db.sm_backend_conf_create(ctxt, params) db.sm_backend_conf_delete(ctxt, beconf['id']) self.assertRaises(exception.NotFound, db.sm_backend_conf_get, ctxt, beconf['id'])