Example #1
0
    def test_action_delete(self):
        action = _create_action(self.ctx)
        self.assertIsNotNone(action)
        action_id = action.id
        db_api.action_delete(self.ctx, action.id)

        self.assertRaises(exception.NotFound, db_api.action_get,
                          self.ctx, action_id)
Example #2
0
 def test_action_delete(self):
     action = _create_action(self.ctx)
     self.assertIsNotNone(action)
     res = db_api.action_delete(self.ctx, action.id)
     self.assertIsNone(res)
Example #3
0
 def test_action_delete(self):
     action = _create_action(self.ctx)
     self.assertIsNotNone(action)
     res = db_api.action_delete(self.ctx, action.id)
     self.assertIsNone(res)