示例#1
0
 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'])
示例#2
0
 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'])