コード例 #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
ファイル: test_db_api.py プロジェクト: matiu2/nova
 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'])