1
0
mirror of https://gerrit.ovirt.org/vdsm synced 2026-02-06 06:46:28 +01:00
Files
vdsm/tests/apiData.py
Sandro Bonazzola 955f78122a flake8: fix E305
Fixed E305: expected 2 blank lines after class or function definition, found 1
and re-enabled the test for it in tox.

Change-Id: I4e9ef63491b6f4063880b8e2db64857cd8c826ee
Related-To: https://bugzilla.redhat.com/show_bug.cgi?id=2004412
Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
2021-09-16 10:01:56 +02:00

41 lines
1.2 KiB
Python

#
# Copyright 2012 Adam Litke, IBM Corporation
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#
# Refer to the README and COPYING files for full details of the license
#
from __future__ import absolute_import
from __future__ import division
class APIData(object):
def __init__(self, obj, meth, data):
self.obj = obj
self.meth = meth
self.data = data
testPing_apidata = [
APIData('Global', 'ping', {
'status': {'code': 0, 'message': 'OK'}})
]
testPingError_apidata = [
APIData('Global', 'ping', {
'status': {'code': 1, 'message': 'Fake error'}})
]